求大佬解答
template1 = 'Life is {1},'
template2 = 'you need {a}'
k423 = 'python'
print(template1.format('short'),template2.format(a=k423))
這是怎么回事?
template1 = 'Life is {1},'
template2 = 'you need {a}'
k423 = 'python'
print(template1.format('short'),template2.format(a=k423))
這是怎么回事?
2023-03-15
舉報(bào)
2024-07-04
template1 = 'Life is {},'
template2 = 'you need {a}'
k423 = 'python'
print(template1.format('short'),template2.format(a=k423))
這樣就可以
2023-03-15
怎么才能使用兩個(gè)模板,還是說不行?