Format of Python3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
print('{0},{1}'.format('zhangk', 32))
print('{},{},{}'.format('zhangk','boy',32))
print('{name},{sex},{age}'.format(age=32,sex='male',name='zhangk'))
# Format qualifier
# It has a rich "format qualifier" (grammar is {} with: number), for example:
# Filling and aligning
# Filling is often used with alignment.
# ^、<、>They are center, left alignment, right alignment, and back width.
# :The character that is filled with the back of the number can only be one charact...