摘要:
检索文件夹大小的程序,要求执行方式如下 python3.8 run.py 文件夹 import sys,os src = sys.argv[1] res = 0 def size_of_file(file): global res for file1 in os.listdir(r'%s'%file 阅读全文
摘要:
time与datetime模块 import time # 时间分为三种格式: # 1、时间戳:从1970年到现在经过的秒数 # 作用:用于时间间隔的计算 print(time.time()) # 2、按照某种格式显示的时间:2020-03-30 11:11:11 # 作用:用于展示时间 print 阅读全文