課程
/后端開發(fā)
/Python
/Python3 入門教程(新版)
Life is short, you need Python
2022-11-17
源自:Python3 入門教程(新版) 3-7
正在回答
一 template?=?'Life?is?short,you?need?{}' python?=?'Python' result?=?template.format(python) print(result) 二 template?=?'life?is?short,you?need?{a}' result?=?template.format(a='Python') print(result)
法一
template?=?python?=?result?=?template.format(python) (result)
法二
template?=?result?=?template.format(=) (result)
舉報(bào)
python3入門教程,讓你快速入門并能編寫簡(jiǎn)單的Python程序
1 回答請(qǐng)使用兩種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號(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)
2022-11-18
2022-11-18
法一
法二