原创 python操作excel中遇到的錯誤

一、PermissionError: [Errno 13] Permission denied: 'F:\\lp_test\\besttest\\auto_test\\homework\\syz_automatic_code\\day7\

原创 python第三方模塊_xlrd、xlwt

一、excel操作模塊 xlrd xlwt1.xlrd 模塊用來讀excelimport xlrd #導入讀excel的模塊 book = xlrd.open_workbook('d_product.xls') sheet = book

原创 Error: activity and pkg are required to start an application

問題: Encountered internal error running command: Error: activity and pkg are required to start an application 原因:啓動參數的名稱

原创 Unexpected error while obtaining UI hierarchy java.lang.reflect.InvocationTargetException

文章來源:https://blog.csdn.net/dengachao/article/details/100535536 錯誤信息: android8以後sdk自帶的uiautomator直接打開,截取不到機器界面信息   解決方法

原创 sdk安裝

1、確認安裝了jdk1.8       查看java版本: 運行 > cmd > java -version           說明:(我的電腦已經安裝了jdk,如何安裝jdk請自行百度安裝步驟及環境變量的配置) 2.下載Android

原创 json字符串與字典互轉遇到的錯誤

1.json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)原因:json字符串的各

原创 python實現時間戳與日期格式互換的函數

import time ''' 時間戳轉換成日期格式 1)將時間時間戳轉換成時間元組 2)通過strftime()將時間元組轉換成格式化時間 ''' def timestamp_to_format(timestamp=None,forma

原创 linux安裝python3.6.4

參照url:https://blog.csdn.net/u010098331/article/details/52190354os版本:centos6.5 64位1.將下載的3.6.4上傳到linux端   下載連接:https://ww

原创 python編程中遇到的錯誤類型,原因及解決方法

一、TypeError1.   user_t = username + time      #將username和time拼接在一起     TypeError: must be str, not float原因:time獲取到的time

原创 genymotion模擬器的安裝及過程中的問題

一、簡介genymotion簡介二、賬號註冊註冊賬號1.官網:https://www.genymotion.com/2.點擊【sign in 】開始註冊 3.點擊【create an account】打開創建賬號界面4.填寫信息,創建賬號

原创 idea恢復本地未提交到git代碼

版本控制:git 原因:checkout到master分支失敗,根據網絡提示執行了git stash命令,導致再切回當前分支,未commit的代碼丟失 解決方法:通過idea的Local History 查找 步驟 : 右擊工程  - 

原创 Redis操作命令

1.查詢key的過期時間    命令:ttl    實例:ttl key    返回值:網上說ttl是以毫秒爲單位,我們的平臺應該是做處理了,此處的數值是以秒爲單位

原创 maven compile報錯 Perhaps you are running on a JRE rather than a JDK? 安裝路徑空格來搗亂

由於找不到當時的截圖了,網上盜圖 操作系統:win7 64位 IDE工具:IDEA 報錯信息: No compiler is provided in this environment. Perhaps you are running o

原创 Jenkins忘記密碼(window操作系統)

背景: 1)jenkins的啓動方式:sevelet容器tomcat啓動 2)windows操作系統   步驟: 1)刪除用戶目錄下 config.xml文件中對應的代碼 config.xml的位置(路徑:“c:\Users\xxx\.j

原创 Thread類

1.獲取當前類方法 Thread.currentThread().getStackTrace()[1].getClassName();   getStackTrace()方法介紹 /** * Returns an array of