摘要: 基础数据类型补充内容 字符串 s = "everyone's the hero in their own story" # print(s.capitalize()) # 句子首单词的首字母变大写,其余小写 Everyone's the hero in their own story # print 阅读全文
posted @ 2020-07-29 23:45 Ethan272 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 1. 请用代码验证"name"是否在字典的键中 info = {"name": "王刚", "hobby": "铁锤", "age": 18} # print("name" in info) # print("name" in info.keys()) # True View Code 2. 循环提 阅读全文
posted @ 2020-07-29 11:02 Ethan272 阅读(204) 评论(0) 推荐(0) 编辑