jkluio668
11/21/2017 - 1:53 PM

other1

判断变量是否存在:

`if '' in locals().keys():`

raw_input和input:
后者对于输入回车,会报错,前者不会。推荐用前者