xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

資源簡介

實現購物車功能例子

資源截圖

代碼片段和文件信息

__author__?=?“Alex?Li“


product_list?=?[
????(‘Iphone‘5800)
????(‘Mac?Pro‘9800)
????(‘Bike‘800)
????(‘Watch‘10600)
????(‘Coffee‘31)
????(‘Alex?Python‘120)
]
shopping_list?=?[]
salary?=?input(“Input?your?salary:“)
if?salary.isdigit():
????salary?=?int(salary)
????while?True:
????????for?indexitem?in?enumerate(product_list):
????????????#print(product_list.index(item)item)
????????????print(indexitem)
????????user_choice?=?input(“選擇要買嘛?>>>:“)
????????if?user_choice.isdigit():
????????????user_choice?=?int(user_choice)
????????????if?user_choice?=0:
????????????????p_item?=?product_list[user_choice]
???????????????

評論

共有 條評論