編程語言的學習 ------ python小遊戲(加入while循環)

此次的小遊戲比較簡單主要是用來練習python中的while循環、if和break語句,增強記憶python #Author:wqh #簡單的猜數字遊戲 game_number = 30 #加入一個計數器 count = 0 while True: #若是計數器等於5則中止計數 if count == 5: break guess_numebr = int(in
相關文章
相關標籤/搜索