Python 字符串拼接

使用 .format()作字符串拼接。ui

name = 'Louis' orm

year = 19字符串

 

print('Hello, My name is {0}, I'm {1} years old'.format(name, year))form

相關文章
相關標籤/搜索