課程
/后端開發
/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的字符串模板
1 回答3.5 python字符串任務
1 回答打印出相同的字符串,這提示是啥意思
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2022-03-02
第一種
print(
Life is short, you need Python
)
第二種
t=
'Life is short{}'
B=t.format(
, you need Python
)
print(B)