2018年11月30日
摘要: 1 __author__ = "JentZhang" 2 3 import time 4 5 # Timestamp 时间戳 6 print("Timestamp 时间戳:") 7 print(time.time()) 8 print("#".center(50,"#")) 9 10 11 # Structime 结构化时间 12 print("Structime... 阅读全文
posted @ 2018-11-30 14:56 JentZhang 阅读(924) 评论(0) 推荐(0) 编辑
摘要: 1 __author__ = "JentZhang" 2 3 import json 4 5 user_info = {"id": 1000, "name": "zhangsan", "age": 25, "address": "xxxxxxxxxx", "mobile": "15966148787"} 6 7 # 将字典转换为JSON字符串 8 json_str = js... 阅读全文
posted @ 2018-11-30 14:45 JentZhang 阅读(708) 评论(0) 推荐(0) 编辑