摘要: 有两种实现字典遍历的方法,下面举例说明 方法1. dic1 = {'Europe':{'man':'Guido','woman':'girl'}, 'Asia':{'man':'Gongzhen','woman':'Xudan'} } # for i in dic1: # print(i,dic1[ 阅读全文
posted @ 2019-11-14 21:43 Iceberg_710815 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 应用列表 知识,创建一个购物车小程序1 #购物车小程序 2 def print_result(computer_num,bicycle_num,book_num,coffee_num,scissor_num,pencil_num,rest_num): 3 msg1 = ''' 4 You've bo 阅读全文
posted @ 2019-11-14 10:09 Iceberg_710815 阅读(146) 评论(0) 推荐(0) 编辑