python字符串格式化

方式一:

a=123
b='xyz'
f'{a}-{b} === {a}'

方式二:

1、按顺序索引

"{} *** {}".format(a,b)

2、按索引指定变量

"{1} **** {0}".format(a,b)
THE END