随笔分类 - python
摘要:with open('./html.html', "r",encoding='utf-8')as f: txt =''.join( f.readlines()) f.close()
阅读全文
摘要:with open("./data.txt", "w",encoding='utf-8')as f: f.write(','.join(columns)) f.close()
阅读全文
摘要:执行后等待exe完成再继续 import subprocess login_info = [r'D:\xxx\a.exe', '参数1=22'] subprocess.check_call(login_info)
阅读全文
摘要:import random r=random.randint(20,40) print(r)
阅读全文
摘要:import time #延时1秒 time.sleep(1)
阅读全文
摘要:1 import time 2 import datetime 3 4 5 #函数定义 6 def getTimeNow(): 7 return datetime.datetime.now() 8 def getYesterDay(): 9 return getTimeNow() + datetim
阅读全文