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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Matt Daemon

3 点作者 ballpoint大约 11 年前

1 comment

rspeer大约 11 年前
Why Python 2.7 only? This looks like it would be Python 3 code if you simply changed<p><pre><code> print str(err) </code></pre> to:<p><pre><code> print(str(err)) </code></pre> Except, that&#x27;s a pretty unhelpful thing to print. I believe a much better statement to put there, in Python 2 or 3, would be:<p><pre><code> raise</code></pre>