Open jzztf opened 6 years ago
__future__
# python 2.x >>> 5/3 1 >>> 5//3 1 # python 3.x >>> 5/3 1.6666666666666667 >>> 5//3 1 ############################## # python 2.x >>> from __future__ import division >>> 5/3 1.6666666666666667 >>> 5//3 1
__future__
模块可以在旧版本python中体验新版本的特性