print
其实本来挺简单的一个函数,奈何每次用都忘记了怎么换行输出,所以想想算了还是自己做个记录,免得每次都要去查.
print函数用法:
print(value, …, sep=’ ‘, end=’..., 2), (3, 4)]
d0 = dict((key, value) for (key, value) in l)
d1 = {key: value for (key, value) in l}
print...”’
print ‘6:\t|{0:b}’.format(3)
print ‘7:\t|{0:c}’.format(3)
print ‘8:\t|{0:d}’.format(3)
print ‘9:\t...|{0:o}’.format(3)
print ’10:\t|{0:x}’.format(3)
print ’11:\t|{0:e}’.format(3.75)
print ’12:\t|{0:g}’....format(3.75)
print ’13:\t|{0:n}’.format(3.75) #浮点数
print ’14:\t|{0:n}’.format(3) #整数
print ’15:\t|{0: