Discuss / Python / 这段代码在py27上不能用吗

这段代码在py27上不能用吗

Topic source

xiongdezhi

#1 Created at ... [Delete] [Delete and Lock User]

我在2.7版本上执行上面代码,各种错误啊

近邻

#2 Created at ... [Delete] [Delete and Lock User]

这就是Python3上的代码,你非要在2.7上运行,当然有错了,在3上运行OK

python 2.7~ 廖大大这里有


  • 1

Reply