Fwd: Python . 中文周刊 . 2013年02周

26 views
Skip to first unread message

张沈鹏

unread,
Jan 14, 2013, 4:05:12 PM1/14/13
to 42q...@googlegroups.com

若有兴趣参与python文章翻译 (有偿), 欢迎加入 此 Google Groups

同时欢迎投放招聘广告(请邮件 42qu....@gmail.com

本周已有 5篇文章 更新, 欢迎 踊跃投稿





--
关于我
http://zuroc.42qu.com/

42区 . VPS主机 , 卖给创业的你
http://vps.42qu.com/

欢迎参与42qu.com开源项目
http://book.42qu.com/42qu

Sunus Lee

unread,
Jan 14, 2013, 10:43:17 PM1/14/13
to 42q...@googlegroups.com
关于with 现在我对它印象并不特别好, 或者不知道practical是如何用e.g:
with open('FILE_NOT_EXISTS') as f:
    do_things()

如果open出错的话, 还是需要在外部try-except ? 那样代码看着好似还是没美感..
PS 如果回复能够同步到42区对应的POST就好了:)
Reply all
Reply to author
Forward
0 new messages