Loading...
import time speed_down=[] speed_up=[] speed_name=[] speed_up_1=[] speed_down_1=[] while True: i=open('/proc/net/dev','r').readlines() for p in i: p=p.split( ) if p[1].isd...
import commands import sys import os Error = "\033[1;31;40m" Through = "\033[1;32;40m" Tail = "\033[0m" def fen(x): status, result = commands.getstatusoutput( ...
引入库:import sys文件名:test.pya=sys.arg[0] print(a) 结果输出:test.py a=sys.arg[1] b=sys.arg[2] print(a+" "+b) 运行>test.py 1 2 结果输出:1 2 a=sys.arg[1:] print(a) 运行>test.py 1 2 3 结果输出:['1','2',...
import os import time def main(): i = 0 while i < 1000: res = "raspistill -t 1 -o img/"+str(i)+".jpg" # os.system(res) print(res) i +...
[转]https://note.youdao.com/share/?id=4ed1687d752255b2f44b34bab3c719a8&type=note#/CMD下输入:py -m pip install pyinstaller,安装pyinstaller。在要制作的exe文件目录输入pyinstaller -F -w *.py,就可以制作出exe。生成的文件放在同目录dist下。-F...