Comments (3)
Hi 您好, 這屬於Warnings.其實Warnings並不是錯誤,只是一種提醒或警告.
應該是因為我的套件版本比您的舊,所以我沒有跳出這個警告.
例如它字面告您的,他建議您在BeautifulSoup()方法中,指定解析器為lxml.
遇到WARNINGS通常有三種選項:
- 看到WARNINGS選擇無視不在意,若您的套件版本不要進行升級等,並確定程式確實是可以正常運行,其實可以無視.
- 依照他的建議, 加上解析器BeautifulSoup(data.text,features="lxml") , 但這個有時候會有造成程式出錯的風險, 因為有一些warnings的建議並不是寫得非常仔細
- 利用warnings套件, 選擇不要SHOW出任何WARNINGS, 眼不見為淨.可嘗試以下加在程式裡
import warnings
warnings.filterwarnings('ignore')
from python-and-taiwan-stock-market.
已順利解決,謝謝
from python-and-taiwan-stock-market.
不會, 歡迎您隨時提出討論.
from python-and-taiwan-stock-market.
Related Issues (20)
- 遇到 OSError? HOT 8
- 排程的權限問題及執行檔問題 HOT 7
- Google 不支援低安全模式 HOT 1
- stock_list.py執行錯誤 HOT 8
- 請問關於自動寄信 HOT 3
- about pandas rolling HOT 2
- 關於yahoo_new小程式 HOT 2
- 關於matplotlib HOT 7
- backtrader問題 HOT 2
- 關於 mpl_finance失效的問題 HOT 2
- 有關更多操作自動化的問題 HOT 2
- 關於PYTHON 金融市場賺大錢聖經書中 HOT 7
- 關於AES_Encryption等第三章問題 HOT 50
- 第1-4虛擬環境 HOT 7
- 第二章27頁 HOT 11
- python聖經第三章3.2小節的代碼問題 HOT 1
- pyfolio 問題 HOT 1
- 第三章'Crypto'的問題 HOT 1
- 第二章 2-21 輸出的中文變成亂碼 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-and-taiwan-stock-market.