摘要: json 源代码: Lib/json/__init__.py json.dump() import json numbers = [1, 2, 3, 4] with open('linshi.py', 'a') as f_obj: json.dump(numbers, f_obj) 解释: 用ope 阅读全文
posted @ 2019-11-29 21:47 Mr-chen 阅读(443) 评论(0) 推荐(0) 编辑
摘要: 用户输入input() input()函数: 用于从标准输入读取数值。 >>> message = input('tell me :') tell me :hahah >>> message 'hahah' 相关: Unix的内建命令read的功能和Python的input()类似。都是重标准输入读 阅读全文
posted @ 2019-11-29 11:11 Mr-chen 阅读(901) 评论(0) 推荐(0) 编辑