摘要: import threading # 线程模块 def function(num): pass thread_1 = threading.Thread(target=function, args=(1,)) # 创建线程 thread_1.start() # 启动线程 thread_1.getNam 阅读全文
posted @ 2020-07-08 14:46 Echo丶Mikasa 阅读(352) 评论(0) 推荐(0)
摘要: 列表 # list.append():在末尾追加新的元素值 list1 = [1, 2, 3, 4] list1.append(5) print(list1) # list.extend():在末尾追加另一个列表 list2 = [1, 2, 3, 4] list2.extend([5, 6, 7] 阅读全文
posted @ 2020-07-08 11:24 Echo丶Mikasa 阅读(316) 评论(0) 推荐(0)
摘要: import time def get_now_time(): now_time = time.strftime('%Y-%m-%d %H:%M:%S',time.localtime(time.time())) return now_time 阅读全文
posted @ 2020-07-08 10:51 Echo丶Mikasa 阅读(797) 评论(0) 推荐(0)