PyCharm: Process finished with exit code 0(PyCharm:进程以退出代码 0 结束)
问题描述
我是 PyCharm 的新手,我的结果是进程以退出代码 0 完成"而不是得到 (683, 11)(请参阅附件),你们能帮帮我吗?非常感谢!
I am new to PyCharm and I have 'Process finished with exit code 0' instead of getting (683, 11) as a result (please see attachment), could you guys help me out please? Much appreciate it!
推荐答案
这是个好消息!这意味着您的代码没有错误.你已经完成了它,它没有任何问题.Pycharm 在没有发现错误时返回 0(加上您提供的任何输出),并在遇到错误时返回 1 以及错误消息.
That is good news! It means that there is no error with your code. You have run it right through and there is nothing wrong with it. Pycharm returns 0 when it has found no errors (plus any output you give it) and returns 1 as well as an error message when it encounters errors.
编辑器和脚本的行为不像交互式终端,当您运行一个函数时,它不会自动显示结果.你需要真正告诉它自己做.
Editors and scripts do not behave like the interactive terminal, when you run a function it does not automatically show the the result. You need to actually tell it to do it yourself.
通常您只需打印结果.
如果您使用 print(data.shape),它应该返回您期望的成功消息 Process finished with exit code 0.
If you use print(data.shape) it should return what you expect with the success message Process finished with exit code 0.
这篇关于PyCharm:进程以退出代码 0 结束的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:PyCharm:进程以退出代码 0 结束
基础教程推荐
- 将 x 轴刻度更改为自定义字符串 2022-01-01
- numpy float:比算术运算中内置的慢 10 倍? 2022-01-01
- 在 Celery 工作人员中捕获 Heroku SIGTERM 以优雅地关 2022-01-01
- Discord.py 缺少必需的参数 2022-01-01
- 尝试制作WhatsApp机器人 2022-01-01
- 由Python将MP3转换为MIDI(类型错误:无法加载插件:mtg-Melodia:Melodia) 2022-01-01
- 使用生成器和迭代器时 Python 多循环失败 2022-01-01
- 用 Python 编写 Fortran 无格式文件 2022-01-01
- pyserial - 可以从线程 a 写入串行端口,是否阻塞从线程 b 读取? 2022-01-01
- 与常规 dict 相比,Python manager.dict() 非常慢 2022-01-01
