摘要: def test(): a = "" return a or "hehe" #如果a为真,输出a; 否则输出右边(比如0, "", [], ()) #return a or Noneprint(test())https://www.cnblogs.com/zealousness/p/8749152. 阅读全文
posted @ 2019-05-08 20:43 心媛意码 阅读(194) 评论(0) 推荐(0) 编辑