"Views And Iterators Instead Of Lists¶ Some well-known APIs no longer return lists: * dict methods dict.keys(), dict.items() and dict.values() return “views” instead of lists. For example, this no longer works: k = d.keys(); k.sort(). Use k = sorted(d) instead (this works in Python 2.5 too
What’s New In Python 3.0¶ Author: Guido van Rossum This article explains the new features in Python 3.0, compared to 2.6. Python 3.0, also known as “Python 3000” or “Py3K”, is the first ever intent...
"Views And Iterators Instead Of Lists¶ Some well-known APIs no longer return lists: * dict methods dict.keys(), dict.items() and dict.values() return “views” instead of lists. For example, this no longer works: k = d.keys(); k.sort(). Use k = sorted(d) instead (this works in Python 2.5 too
このブックマークにはスターがありません。
最初のスターをつけてみよう!
What’s New In Python 3.0
What’s New In Python 3.0¶ Author: Guido van Rossum This article explains the new features in Python 3.0, compared to 2.6. Python 3.0, also known as “Python 3000” or “Py3K”, is the first ever intent...
18 人がブックマーク・8 件のコメント
\ コメントが サクサク読める アプリです /