我試圖讓一些HTML來處理我的Python代碼。 我有一個我的CSS代碼。Python和HTML'%Operator'
#footerBar {
height: 40px;
background: red;
position: fixed;
bottom: 0;
width: 100%;
z-index: -1;
}
但是,當我嘗試訪問該頁面時,出現以下錯誤。
File "projv2.py", line 151, in welcome
</form>""" %(retrievedFullName, retrievedUserName,)
ValueError: unsupported format character ';' (0x3b) at index 1118
我認爲這是與%
搞亂,因爲我使用的HTML的其他地方。
任何幫助將不勝感激。
你如何「訪問」該頁面? – 2012-03-26 13:01:29
好的,你有沒有測試過如果你刪除'%'(用'px'或其他)代替''''。錯誤消失了嗎? – 2012-03-26 13:10:01