1,类似格式话输出的占位符s%.
#print('my name is {} ,I like {} ',format('xiong','reading'))
2,
#print(‘{0} {1} {0}’,format(‘a’,‘b’))
3,
#print(‘{name} {age}’,format(‘a’,18))
1,类似格式话输出的占位符s%.
#print('my name is {} ,I like {} ',format('xiong','reading'))
2,
#print(‘{0} {1} {0}’,format(‘a’,‘b’))
3,
#print(‘{name} {age}’,format(‘a’,18))