Python 字符串拼接

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

name = 'Louis' 

year = 19

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

原文地址:https://www.cnblogs.com/haoshine/p/6072670.html