Pycharm中的运行和待办事项选项卡

问题描述 投票:0回答:1

我刚刚开始用Pycharm工作。

我的问题是,当我在编辑器中写了一段代码,然后运行它。

RUN标签显示 "Process finished with exit code 0".

它执行了我的代码,但我没有看到它。

然而,当我直接在Python控制台中写代码时,我可以看到代码。

我不知道这是完全正常的,还是我没有正确配置什么。

另外,我的TODO选项卡没有识别项目,显示 "在0个文件中发现0个TODO项目"

谢谢你!我刚开始用Pycharm工作。

# 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()
python configuration pycharm
1个回答
0
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.