《笨方法宵夜 Python 3》35.分支和函數

基礎練習:  from sys import exit def gold_room(): print("This room is full of gold. How much do you take?///這個房間裏滿是金子。你要多少錢?") choice = input("> ") if "1" or "0" in choice: how_much = int(choice)
相關文章
相關標籤/搜索