- a="i like {0:10} and {1:>10} end".format("python","java")
- b="i like {0:10} and {1:^10} end".format("python","java")
- c="i like {0:^10} and {1:^10} end".format("python","java")
- d="i like {0:.2} and {1:^10.3} end".format("python","java")
- {0:10} 0的意思是第一个字符串“python”
- {1:10}1的意思是第二个字符串"java"
- 10的意思是有10个字符那么长