'f={0}'.format(x)
'f=x'
'f={0:.3f}'.format(3.333333)
'f=3.333'
d = {'name':'sboku', 'age':'30', 'job':'engineer'}
'name:{0}, age:{1}'.format(d.get('name'), d.get('age'))
10//4 --> 2
10//4.0 -->2.0
import math
math.floor(3.4) -->3 math.floor(3.9) --> 3
math.floor(-3.4) -->-4 math.floor(-3.9) --> -4
math.trunc(3.9) -->3 math.trunc(-3.9) --> -3
0o 8进制, 0x 16进制, 0b 2进制
转换 oct(), hex(), bin()
"what's your name" == 'what\'s your name'
s = "asdfasdfagaf"
s[:] --> 'asdfasdfagaf'
s[-1] --> 'f', s[:-1] --> 'f'
s[::2] --> 'adadaa'
s[::3] --> 'afdg'