摘要: 1、检索文件夹大小的程序,要求执行方式如下: python3.8 run.py 文件夹 import sys import os file_path = sys.argv[1] def my_get_size(file_path): file_size = 0 if not os.path.exis 阅读全文
posted @ 2020-03-30 23:16 Python-feng 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 1、时间模块 1.1 时间模块优先掌握的操作 1.1.1 time import time 1) 时间分为三种格式: ① 时间戳:从1970年到现在经过的秒数 作用:用于时间间隔的计算 print(time.time()) ② 按照某种格式显示的时间:2020-03-30 11:11:11 作用:用 阅读全文
posted @ 2020-03-30 23:15 Python-feng 阅读(147) 评论(0) 推荐(0) 编辑