练习python的输出时,发现直接输出变量名会报错,如下:
因为python2.X版本与python3.X版本输出方式不同,python3.X中输入内容时都要带上括号,而在2.X中直接输出就没有问题
转自:https://www.cnblogs.com/chongyou/p/5843309.html