摘要: #单行操作import json import time #json dumps操作,将python对象转换为json对象 d = { '谦谦': { 'sex': '男', 'addr': '北京', 'age': 34 }, '千千': { 'sex': '女', 'addr': '北... 阅读全文
posted @ 2019-05-21 22:38 老郭蜀黍 阅读(92) 评论(0) 推荐(0)
摘要: import random import time def v_code(): while True: code_1 = random.randint(0, 9) code_2 = random.randint(0, 9) code_3 = random.randint(0, 9) code_4 = random.ran... 阅读全文
posted @ 2019-05-21 16:56 老郭蜀黍 阅读(129) 评论(0) 推荐(0)
摘要: 1 In [1]: import time 2 3 In [2]: time.time() 4 Out[2]: 1558424064.7592645 5 6 In [3]: time.strftime('%Y/%m/%d %X',time.localtime()) 7 Out[3]: '2019/05/21 15:36:33' 8 9 In [4]: time.strft... 阅读全文
posted @ 2019-05-21 15:49 老郭蜀黍 阅读(109) 评论(0) 推荐(0)