打印报表

大多数时候应该避免打印,因为它可能会分散注意力(应该首选 Out)。
那是:

a
# Out: 1

永远比

print(a)
# prints: 1

更喜欢支持 python 2 和 3:

print(x)    # yes! (works same in python 2 and 3)
print x     # no! (python 2 only)
print(x, y) # no! (works differently in python 2 and 3)