課程
/后端開發
/Python
/Python3 入門教程(新版)
指定名字對應模板?的代碼運行起來不對,那位大佬告知一下
2024-01-11
源自:Python3 入門教程(新版) 3-7
正在回答
#?-*-?coding:?utf-8?-*-
# 加上上面這個注釋就可以帶有中文的注釋了
b = "Python"
print("Life is short, you need {c}".format(c=b))
print("Life is short, you need {0}".format("Python"))
# no chinese world or?
翎棟
翎棟 回復 翎棟
沒有問題
把兩行注釋去掉試試看
舉報
python3入門教程,讓你快速入門并能編寫簡單的Python程序
1 回答為啥用數字指代各種模板和模板內數據不行啊
1 回答format的字符串模板
1 回答地板除,取模運算
1 回答關于3-7Python的字符串format第三個代碼模板
1 回答format函數 指定名稱代碼
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2024-02-17
# 加上上面這個注釋就可以帶有中文的注釋了
b = "Python"
print("Life is short, you need {c}".format(c=b))
print("Life is short, you need {0}".format("Python"))
# no chinese world or?
2024-01-15
2024-01-15
把兩行注釋去掉試試看