請問為什么會出現OSError: [Errno 22] Invalid argument錯誤:
demo.py:

html:
<form action="{{ url_for('login') }}" method="post">
<input class="gv" style="cursor: text" type="text" placeholder="學號" name="student_id">
<input class="gv" style="cursor: text" type="password" placeholder="密碼" name="password">
<button id="check-btn2" class="gv" type="submit">提交</button>
報錯:
uj5u.com熱心網友回復:
確實不科學,print前面加下面幾行看看輸出,再看看print.txt有沒有輸出內容,縮小下具體定位范圍help(print)
print(123,file=open('print.txt','w+'))
print(password,file=open('print.txt','w+'))
print(123)
print(type(password))
uj5u.com熱心網友回復:
今天運行了原先的代碼,沒報錯,這是pycharm不穩定嗎轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/83994.html
上一篇:python用wordcloud庫做詞云程式不報錯但圖片不顯示
下一篇:求編程
