format不仅可以接收字符串作为输入,也可以接收列表作为输入
例子:
lista=['ni','hao']
print("这个世界{}{}".format(*lista))
输出:
这个世界nihao