# format() 方法 {}代替元素 默认是从左往右开始取值 test = 'i am {},age {},{}'.format('xiaoma',18,'happy') print(test) i am xiaoma,age 18,happy test1 = ','xiaoma','happy') print(test1) i am xiaoma,age 18,happy test2 = ','xiaoma','happy') print(test2) i am 18,age 18,18…