TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Notes from MPUG: "Python one-liners" talk

33 pointsby moreatialmost 12 years ago

2 comments

msluyteralmost 12 years ago
A nice list. I use things like the simple web server all the time, and I was unaware of the SMTP server, but some of these seem superflous, like:<p><pre><code> python -m calendar </code></pre> When you could just do<p><pre><code> cal 2013 </code></pre> (with fewer keystrokes). Is there some advantage to using the python version of the above?
评论 #5814712 未加载
评论 #5815923 未加载
评论 #5815023 未加载
评论 #5816574 未加载
arocksalmost 12 years ago
A lot more examples are in the Python wiki: <a href="http://wiki.python.org/moin/Powerful%20Python%20One-Liners" rel="nofollow">http://wiki.python.org/moin/Powerful%20Python%20One-Liners</a>