課程
/后端開發(fā)
/Python
/Python3 入門教程(新版)
請使用兩種format的方式打印字符串Life is short, you need Python,能問問怎么寫嗎?
2022-03-01
源自:Python3 入門教程(新版) 3-7
正在回答
第一種
print(
)
第二種
t=
B=t.format(
)
print(B)
舉報
python3入門教程,讓你快速入門并能編寫簡單的Python程序
2 回答請使用兩種format的方式打印字符串Life is short, you need Python。
1 回答format的字符串模板
1 回答字符串format任務(wù)
1 回答3.5 python字符串任務(wù)
1 回答打印出相同的字符串,這提示是啥意思
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2022-03-02
第一種
print(
Life is short, you need Python
)
第二種
t=
'Life is short{}'
B=t.format(
, you need Python
)
print(B)