摘要:
https://www.cnblogs.com/yanfengt/p/6305542.html 一、引用 使用到的全局变量只是作为引用,不在函数中修改它的值的话,不需要加global关键字。如: #! /usr/bin/python a = 1 b = [2, 3] def func(): if a 阅读全文
posted @ 2020-01-05 04:33
MKT-porter
阅读(196)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2020-01-05 04:17
MKT-porter
阅读(172)
评论(0)
推荐(0)
摘要:
#!/usr/bin/python # -*- coding: UTF-8 -*- import datetime #时间 time_begin="8:00" time_over ="22:00" #函数名 读取txt中指定参数内容 #函数输入 # path_txt txt文件地址 # canshu 阅读全文
posted @ 2020-01-05 03:31
MKT-porter
阅读(477)
评论(0)
推荐(0)
摘要:
https://blog.csdn.net/feiyang5260/article/details/87821901 方法1,使用datetime值比较(一般不如2好) import datetime # 范围时间 d_time1 = datetime.datetime.strptime(str(d 阅读全文
posted @ 2020-01-05 02:38
MKT-porter
阅读(1304)
评论(0)
推荐(0)
浙公网安备 33010602011771号