为啥用数字指代各种模板和模板内数据不行啊
0='Life is {s},you need {p}'
1='short'
2='python'
result=0.format(s=1,p=2)
print(result)为什么012不行,我把012换成abc就可以了啊
0='Life is {s},you need {p}'
1='short'
2='python'
result=0.format(s=1,p=2)
print(result)为什么012不行,我把012换成abc就可以了啊
2021-05-31
举报