看板 Python 關於我們 聯絡資訊
小的第一次發文 我的程式目的在判斷某數值是否為3,16,17的公倍數 以下: print("Please input an integer to exam whether it is a common mutiple of 3, 16, 17") x=int(input()) if x%816==0: print("y") else: print("n") 透過py2exe轉檔成exe後 當我測試數值時 發現輸入數值後按enter 程式就關閉了 請問有可能是哪邊出了問題? 感謝大家! -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 180.217.250.176 ※ 文章網址: https://www.ptt.cc/bbs/Python/M.1494118135.A.449.html
shadowjohn: 用cmd執行,不然結束前加pause 05/07 09:05
linchard111: 感謝 05/07 09:53