240
笔下虽有千言,胸中实无一策
摘要: Python's conditional expression is a if C else b and can't be used as: [a for i in items if C else b] The right form is: [a if C else b for i in items 阅读全文
posted @ 2017-05-12 01:15 CasperWin 阅读(507) 评论(0) 推荐(0) 编辑