为什么错了
template = 'Hello {w}, Hello {c}, Hello {b}, Hello {i}.'
w = 'World'
c= 'China'
b = 'Beijing'
i= 'imooc'
result = template.format(w,c,b,i)
template = 'Hello {w}, Hello {c}, Hello {b}, Hello {i}.'
w = 'World'
c= 'China'
b = 'Beijing'
i= 'imooc'
result = template.format(w,c,b,i)
2021-12-07
举报