原创 bat拖動apk安裝
@echo on adb uninstall 包名 adb shell rm -rf path/包名 adb install -t "%~1" rem 安裝結束 pause 使用時中文亂碼,使用記事本另存,編碼格式選擇ansi
原创 requests針對list格式數據進行post請求
使用json.dumps(data)將數據進行轉換後,使用data類型進行請求 import json import requests def test_add(self): url = "http://t
原创 django刪除已創建的數據庫
刪除以上地方後,再重新執行即可 python manage.py makemigrations python manage.py migrations 老版本操作參考:https://www.cnblogs.com/xiaozhi
原创 Python實現md5加密和使用HmacSHA256算法哈希進行sha256加密
# 用md5加密,md5(原始secret+時間戳(yyyy-MM-dd格式)),16進制小寫形式返回 def get_encryptedSecret(secret): currentDate = time.strftim
原创 Jmeter連接數據庫以及查詢結果作爲變量使用
參考:https://www.jianshu.com/p/e23ab3a730b5 注意:database url:jdbc:mysql://localhost:3306?useUnicode=true&characterEncoding
原创 通過maven依賴下載各種依賴jar包,不限於mysql-connector-java-5.1.20-bin.jar
參考: http://www.mamicode.com/info-detail-2516298.html?__cf_chl_jschl_tk__=a96775db16849c2f445439708f963f899cc56083-15900
原创 charles進行弱網測試
全局弱網設置 個別網址限速設置 關於網速的選擇 Bandwidth(帶寬)、Utilistation(利用百分比)、Round-trip(往返延遲)、MTU(最大傳輸單元) 3G:300k-2Mbps左右 2.5G(GPRS)一般在
原创 flask數據庫初始化提示:WARNING: This is a development server. Do not use it in a production deployment.
解決方法: 將app.run()改爲manager.run() from flask_script import Manager manager=Manager(app) if __name__ == "__main__": #
原创 Django運行報錯:RuntimeError: cryptography is required for sha256_password or caching_sha2_password
安裝如下,即可解決 pip install cryptography
原创 Bat實現指訂設備安裝應用
@echo on adb uninstall com.test.package adb shell rm -rf sdcard/com.test.package Echo 請選擇:204 287 01S 031 Echo. Set
原创 python實現form-data格式文件/非文件上傳
文件格式上傳方法 def test_upload_file(self): url = "http://www.baidu.com/" files = {'file': ('test.xls', o
原创 爬蟲學習初級
轉發: https://www.cnblogs.com/Albert-Lee/p/6232745.html
原创 configparser使用以及無法配置ini文件解析%出錯問題解決
基本使用: https://www.jianshu.com/p/417738fc9960 解決python讀取 的.ini 文件中有特殊符號 %報錯:: https://www.jianshu.com/p/64537ccde612 將cf
原创 jemter分佈式壓測部署及監控
參考:https://blog.csdn.net/luozhonghua2014/article/details/80418114 1.在本地(ctroller)配置遠程地址 apache-jmeter-4.0/bin/目錄下 打開jme
原创 PyCharm修改Python版本
如下圖,記錄要勾選Make avaliable to all projects,然後查看是否加載出所有的第三方插件,會遇到插件安裝後,運行還是找不到插件的問題,就是這裏選擇的不對,Pycharm總是會自己修改Base interperte