作者linchard111 (新资料夹(4))
看板Python
标题[问题] exe档输入数值後按enter即关闭
时间Sun May 7 08:48:49 2017
小的第一次发文
我的程式目的在判断某数值是否为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://webptt.com/cn.aspx?n=bbs/Python/M.1494118135.A.449.html
1F:推 shadowjohn: 用cmd执行,不然结束前加pause 05/07 09:05
2F:→ linchard111: 感谢 05/07 09:53