摘要: msg_dic={ 'apple':10, 'tesla':100000, 'mac':3000, 'lenovo':30000, 'chicken':10, } shop_list=[] while True: for k in msg_dic: print(k,msg_dic[k]) input 阅读全文
posted @ 2017-12-14 10:49 银鑫 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 标准数据类型 标准数据类型 Python3 中有六个标准的数据类型: Number(数字) String(字符串) List(列表) Tuple(元组) Sets(集合) Dictionary(字典) 数字 数字 字符串 字符串 >>> name="yinxin" >>> name[0] 'y' > 阅读全文
posted @ 2017-12-14 10:43 银鑫 阅读(277) 评论(0) 推荐(0) 编辑