From d6f7ab1b6cbdba5562032ec15779a5cc0d033a12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8A=89=E6=9D=B1=E7=86=A0?= Date: Thu, 18 Oct 2018 02:00:05 +0800 Subject: [PATCH] Update jsq.py --- clo/py/tutorial/official/cpython/2/jsq.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/clo/py/tutorial/official/cpython/2/jsq.py b/clo/py/tutorial/official/cpython/2/jsq.py index d3ec062..8338bf3 100644 --- a/clo/py/tutorial/official/cpython/2/jsq.py +++ b/clo/py/tutorial/official/cpython/2/jsq.py @@ -24,7 +24,15 @@ 世界是平的 = 真的 if 世界是平的? else 假的 -if 世界是平的: 输出(语句) +# if 世界是平的: 输出(语句) + +如果 = lambda x,是,否: 是 if x else 否 + +略 = None # 省略-> pass +若 = lambda 真,则: 则 if 真 else 略 + +若 (世界是平的, 则=输出(语句)) # 注:不记得这句是不是真的能运行,感觉会报错。回头测试一下 + # -*- coding: encoding -*-