![如何讓 Atom 編輯器在腳本運行時顯示終端和輸出?](https://rvso.com/image/1618750/%E5%A6%82%E4%BD%95%E8%AE%93%20Atom%20%E7%B7%A8%E8%BC%AF%E5%99%A8%E5%9C%A8%E8%85%B3%E6%9C%AC%E9%81%8B%E8%A1%8C%E6%99%82%E9%A1%AF%E7%A4%BA%E7%B5%82%E7%AB%AF%E5%92%8C%E8%BC%B8%E5%87%BA%EF%BC%9F.png)
我添加了一個運行良好的腳本包。
運行 Python 腳本後,在哪裡可以看到腳本的輸出?我將螢幕分開,我看到的只是以下內容:
這是腳本:
from bs4 import BeautifulSoup
import urllib
url = urllib.urlopen('http://meinparlament.diepresse.com/')
content = url.read()
soup = BeautifulSoup(content, 'lxml')
table = soup.findAll('div',attrs={"class":"content-question"})
for x in table:
print x.find('p').text
# Another way to retrieve tables:
# table = soup.select('div[class="content-question"]')
我怎麼能安排 Atom 以便我可以看到
- 劇本
- 命令列
- Python 腳本的輸出?