1. 进行浮点数运算时,整数要写成浮点数形式,否则Python默认按照整数进行运算了,譬如3/5应该写成3.0/5.0: 2. Python没有switch: 3. Python中没有重载,但是可以通过形参来实现重载,譬如: class Test: def __init__(self, a = None, b = None, c = None): self.a = a; self.b = b; self.c = c; print a, b, c; t1 = Test(); t2 = Test(1…