首页 > 编程语言 > 详细

What's New In Python 3.X

时间:2017-02-14 13:59:54      阅读:124      评论:0      收藏:0      [点我收藏+]

    As Python updating to python 3.6, its performance is better than Python 2.x, which is

good news to every Python developer. I would like to write down new features of Python 3.x,

I hope it can help me remind the history of Python development.

 

1.Python 3.0

1.1 Print Function.

     We need to add bracket when invoking the print() function in Python.

1.2 Views And Iterators Instead of List.

     dict methods dict.keys(), dict.items(). dict.values() return views instead of lists. For example, 

 keys = d.keys(); keys.sort()

  this no longer works. Use k = sorted(d) instead.

What's New In Python 3.X

原文:http://www.cnblogs.com/zhuangzebo/p/6397152.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!