为了账号安全,请及时绑定邮箱和手机立即绑定

Heroku EOFError 只有两行 python 代码

Heroku EOFError 只有两行 python 代码

吃鸡游戏 2021-09-14 20:51:19
这是我第一次尝试将 Python 程序部署到 Heroku。我的python程序是name=input("What is your name?: ");print("Nice to meet you", name)  并https://shielded-gorge-83102.herokuapp.com/说Application error An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the commandheroku logs --tail 在执行日志命令时:(intro) D:\heroku>heroku logs    2018-12-12T13:43:55.763708+00:00 app[api]: Release v2 created by user m.naufil1@gmail.com    2018-12-12T13:43:55.600014+00:00 app[api]: Initial release by user m.naufil1@gmail.com    2018-12-12T13:43:55.600014+00:00 app[api]: Release v1 created by user m.naufil1@gmail.com    2018-12-12T13:43:55.763708+00:00 app[api]: Enable Logplex by user m.naufil1@gmail.com    2018-12-12T13:44:09.000000+00:00 app[api]: Build started by user m.naufil1@gmail.com    2018-12-12T13:44:33.155579+00:00 app[api]: Release v3 created by user m.naufil1@gmail.com    2018-12-12T13:44:33.172663+00:00 app[api]: Scaled to web@1:Free by user m.naufil1@gmail.com    2018-12-12T13:44:36.735728+00:00 heroku[web.1]: Starting process with command `python script.py`    2018-12-12T13:44:38.669558+00:00 heroku[web.1]: Process exited with status 1    2018-12-12T13:44:38.605013+00:00 app[web.1]: What is your name?: Traceback (most recent call last):它说you cant use input command here。那么这是因为它是一个网络应用程序并且打印命令无法在浏览器上运行吗?请告诉我如何在不接受输入的情况下运行此程序。所以,如果我们在这里需要一点 HTML,我也知道使用 HTML。所以请帮助我使用 python 运行这个程序。
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 176 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号