首页 > 解决方案 > 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()

标签: pythonconfigurationpycharm

解决方案


您是否使用了打印语句,然后运行了您的程序。因为在pycharm中,你应该使用print语句来显示任何东西


推荐阅读