文章目录
2021-10-11
-
常用shell命令:
apt-get install
apt-get uninstall
file:cd , rm -rf *, copy src dst, cat, chmod,
performance: proc/meminfo, vmstat, slabinfo, vmallocinfo, procrank
cpuinfo, -
常用py库
- random:
rand_idx = random.randint(0,len(process_list)-1)
2. time
# device(uri).adb.cmd("root")
sleep(5)
cur_time_fmtstr = time.strftime("%m%d%H%M%Y",time.localtime())
print(cur_time_fmtstr)
shell("date %s set"%cur_time_fmtstr) #adb shell命令
time time.time() time.strftime('%h%')
- xlrd load_workbook
from openpyxl import load_workbook row ranges start with 0
1.xlwt:对xls等excel文件的写入
2.xlrd:对xls等excel文件的读取
3.openpyxl:对xlsm、xlsx等excel文件的读写
1,2比较旧了,
4. shutil
5. json
load :
loads :
dumps :
dump:
6. os
执行系统命令:os.system() os.popen() os.commands() os.subprocess
文件访问:os.path
路径:
net use * /del y
net z: url /user:name pwd
7. re re.match(str, pattern)
collections
# for pre, _, node in RenderTree(self.start):
# print("%s%s" % (pre, node.name))
import
1,模块的导入需要一个叫做“路径搜索”的过程。
2, 路径搜索:查找某个文件的操作,
搜索路径: 查找一组目录, 这组目录下进行路径搜索(环境变量 sys. path)
-
adb push src dest
adb pull src destadb shell getprop |grep soc[micon|amigo]
adb shell pm list
adb shell am com.iauto.audio. -
valgirind --leak-memory,memery check,
5, dd if={} bs=4096 of={}
adb操作:
1, https://juejin.cn/post/6844903645289398280#heading-25
=以上==========