摘要:
有两种实现字典遍历的方法,下面举例说明 方法1. dic1 = {'Europe':{'man':'Guido','woman':'girl'}, 'Asia':{'man':'Gongzhen','woman':'Xudan'} } # for i in dic1: # print(i,dic1[ 阅读全文
摘要:
应用列表 知识,创建一个购物车小程序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 阅读全文