__future__模块

1 作用

允许低版本的python使用高版本python的特性。

2 内容

'absolute_import'

'all_feature_names'

'division':定义整数除法/,地板除用//。老版本/表示地板除。

'generators'

'nested_scopes'

'print_function':禁用print "abc"

'unicode_literals':字符串使用unicode编码

'with_statement':引入with关键字

posted @ 2015-01-23 10:52  yanyichao  阅读(137)  评论(0编辑  收藏  举报