import datetime, os, time
def dif_num(a, b):
total_str = b - a
print("差", total_str)
return total_str
def get_time():
now_time = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
print("今日时间",now_time)
def create_floder():
for i in range(1, 2):
time.sleep(2)
folder = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
print(folder)
path = r'F: estLogs_'
os.mkdir(path + folder)
def down_load():
down_url = 'http://www.zipython.com/images/angel.mp3'
# system中传参用%
os.system("wget %s" % down_url)
# 函数调用
dif_num(1, 2)
get_time()
create_folder()
down_load()