python - Pycharm 中的运行和待办事项选项卡
问题描述
我刚开始在 Pycharm 工作。
我的问题是,当我在编辑器中编写代码并运行它时。
RUN 选项卡显示:“进程以退出代码 0 完成”。
它执行我的代码,但我没有看到它。
但是,当我直接在 Python 控制台中编写代码时,我可以看到代码。
我不知道这是否完全正常,或者我没有正确配置某些东西。
此外,我的 TODO 选项卡没有识别项目并显示“在 0 个文件中找到 0 个 TODO 项”
谢谢!
# Retrieve TSLA data from Quandl
tesla = quandl.get('WIKI/TSLA')
# Retrieve the GM data from Quandl
gm = quandl.get('WIKI/GM')
gm.head(5)
# Plot Data
import matplotlib.pyplot as plt
# Plot for gm stock
plt.plot(gm.index, gm['Adj. Close'])
plt.title('GM Stock Price')
plt.ylabel('Price ($)');
plt.show()
解决方案
您是否使用了打印语句,然后运行了您的程序。因为在pycharm中,你应该使用print语句来显示任何东西
推荐阅读
- python - Keras tensorflow 将模型 NN 修改为 CNN
- python - 如果不检查空根,为什么会出现以下代码的运行时错误?
- c++ - 适用于 macOS 的 VS code c++:编译有效,但 VS code 检测到错误
- python - 在 ROS 中获取 RealSense 深度帧
- php - httpclient .post() 方法没有响应
- python - 如何使用 scikitlearn 交叉验证对模型进行平均
- sql-server - 试图创建一个列,但它也创建了一个无用名称的默认约束
- javascript - 加载资源失败:400(错误请求)React/GraphQL/Sequelize
- http - jwt解析失败后反向代理失败请求
- php - 有没有办法比较在 php mysql 中存储为字符串值的时间值?