女友的預算python

while 1: sum_price = int(input("請輸入預算:")) print(sum_price) if sum_price>10000: print("超出預算") else: goods = input("物品的價格:") goods = goods.strip(" ").split(" ")
相關文章
相關標籤/搜索