TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Where to learn Python 3 for an experienced Python 2 programmer?

3 点作者 candidtim超过 7 年前
For an experienced Python 2 programmer, what are the resources to learn what&#x27;s new in Python 3, and how to program in idiomatic Python 3 way? There are numerous python tutorials out there, but it seems that most of them are either for a beginner Python programmer, starting from the basics, or quite superficial, or focus on migration and compatibility only. Are there documents covering specifically Python 3 new features? I have in mind something in the spirit of what https:&#x2F;&#x2F;babeljs.io&#x2F;learn-es2015&#x2F; does for ECMAScript 5, for example.<p>Thank you!

1 comment

svennek超过 7 年前
Not much to learn.<p>To get your scripts working (basically):<p>- Strings vs bytes (i.e. the reason for v3)<p>- Parenthesis for print<p>Some libraries have been changed a little. Personally, urllib has been the one, I have had the most trouble with.<p>As for the new features. Look at the release-notes which most of the time as pep numbers. Read the peps.<p>Some keyword could be: - generators<p>- iterators<p>- the &quot;format string&quot; string (prefixed with f)<p>But it is far from a new language... (Just an incompatible on with the one you know, primarily about strings).
评论 #16036039 未加载