2020年9月7日
摘要: #函数input(),程序暂停运行,等待用户输入一些文本,获取输入后,将其存储在一个变量中 message = input("tell me") print(message) tell mehi hi name = input("Please enter your name:") print("He 阅读全文
posted @ 2020-09-07 17:15 cookie的笔记簿 阅读(136) 评论(0) 推荐(0) 编辑
摘要: #字典,访问字典中的值 alien_0 = {'color':'green','points':5} print(alien_0['color']) print(alien_0['points']) green 5 #将值存储在变量中new_points中 new_points = alien_0[ 阅读全文
posted @ 2020-09-07 16:53 cookie的笔记簿 阅读(134) 评论(1) 推荐(0) 编辑