課程
/后端開發
/Python
/Python3 入門教程(新版)
template='Life is {a}','you need '
short='short'
python='python'
?result=template.format(a=short,b=python)
2020-12-12
源自:Python3 入門教程(新版) 3-7
正在回答
12月17那個人說的對,親測,好像是因為格式問題,轉義我不清楚
template='Life is {a}','you need '改為template='Life is {a},you need '
'需要轉義符
舉報
python3入門教程,讓你快速入門并能編寫簡單的Python程序
3 回答為什么這樣寫代碼是錯誤的?
1 回答為什么我打印出來的是 大括號呢 { }
2 回答這個代碼為什么顯示錯誤呢
1 回答為什么打印的result是tuple類型?
1 回答我的代碼為什么不行
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2021-03-23
12月17那個人說的對,親測,好像是因為格式問題,轉義我不清楚
2020-12-17
template='Life is {a}','you need '改為template='Life is {a},you need '
2020-12-14
'需要轉義符