課程
/后端開發
/Python
/初識Python
'<tr><td>%s</td><td style="color:red">%s</td></tr>' % (name, score)
2016-04-14
源自:初識Python 10-2
正在回答
哦,謝謝,記錯了
清波
'<tr><td>%s</td><td?style="color:red">%s</td></tr>'?%?(name,?score)
從題主 貼出的代碼來看, 并不需要轉義呀, 字符串用單引號定義, 字符串中只有雙引號。
關于 轉義符,我在其他問題中有回答,轉來 url ?以供參考:
http://www.xianlaiwan.cn/wenda/detail/313388
舉報
學python入門視頻教程,讓你快速入門并能編寫簡單的Python程序
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2016-04-14
哦,謝謝,記錯了
2016-04-14
從題主 貼出的代碼來看, 并不需要轉義呀, 字符串用單引號定義, 字符串中只有雙引號。
關于 轉義符,我在其他問題中有回答,轉來 url ?以供參考:
http://www.xianlaiwan.cn/wenda/detail/313388