課程
/后端開發(fā)
/Python
/Python3 入門教程(新版)
指定名字對(duì)應(yīng)模板?的代碼運(yùn)行起來(lái)不對(duì),那位大佬告知一下
2024-01-11
源自:Python3 入門教程(新版) 3-7
正在回答
#?-*-?coding:?utf-8?-*-
# 加上上面這個(gè)注釋就可以帶有中文的注釋了
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?
翎棟
翎棟 回復(fù) 翎棟
沒有問題
把兩行注釋去掉試試看
舉報(bào)
python3入門教程,讓你快速入門并能編寫簡(jiǎn)單的Python程序
1 回答為啥用數(shù)字指代各種模板和模板內(nèi)數(shù)據(jù)不行啊
1 回答format的字符串模板
1 回答地板除,取模運(yùn)算
1 回答關(guān)于3-7Python的字符串format第三個(gè)代碼模板
1 回答format函數(shù) 指定名稱代碼
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購(gòu)課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2024-02-17
# 加上上面這個(gè)注釋就可以帶有中文的注釋了
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
把兩行注釋去掉試試看