課程
/后端開發(fā)
/Python
/python-web.py開發(fā)入門
web.py模板使用出現(xiàn)中文亂碼現(xiàn)象,open().read()則沒問題
2018-07-09
源自:python-web.py開發(fā)入門 2-6
正在回答
啊,謝啥呢。嘿嘿。感謝收聽學的怎么樣啊
open()再加個參數(shù)encording="utf-8"
這是我的HTML:
這是我的:Html ==<html>?<head>??<title>hi</title>??<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />?</head>?<body>??<h1>post</h1>??<div>???<form action="/blog/123" method="POST">????<input type="text" method="username" value=""/>????<input type="password" name="password" value=""/>????<input type="submit" value="submit">???</form>??</div>?</body></html>
這是我的python:
<meta?http-equiv="Content-Type"?content="text/html;?charset=utf-8"?/>
在html中加如上代碼,標明編碼。
大海中的小船 提問者
qq289此生有你 回復 大海中的小船 提問者
舉報
web.py開發(fā)入門入門教程,講解一個你最快能學會的web開發(fā)的框架
1 回答模板怎么寫 中文不亂碼
2 回答為什么web.py 使用open打開html文件 顯示的是源碼?
1 回答web.py檢測問題
1 回答web.py
3 回答pip install web.py==0.40-dev1,安裝了web.py, 并命令窗口web.py測試報錯
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學習伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2022-03-23
啊,謝啥呢。嘿嘿。感謝收聽學的怎么樣啊
2019-03-07
open()再加個參數(shù)encording="utf-8"
2018-07-12
這是我的HTML:
這是我的:Html ==
<html>
?<head>
??<title>hi</title>
??<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
?</head>
?<body>
??<h1>post</h1>
??<div>
???<form action="/blog/123" method="POST">
????<input type="text" method="username" value=""/>
????<input type="password" name="password" value=""/>
????<input type="submit" value="submit">
???</form>
??</div>
?</body>
</html>
這是我的python:
2018-07-09
在html中加如上代碼,標明編碼。