Skip to content

Commit 35be006

Browse files
committed
if
1 parent d67894f commit 35be006

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎122.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ elif用于多个条件时使用,可以没有。另外,也可以只有if,
133133
- 如果X为真,那么就执行A=Y
134134
- 如果X为假,就执行A=Z
135135

136+
如此例
137+
136138
>>> x = 2
137139
>>> y = 8
138140
>>> a = "python" if x>y else "qiwsir"

0 commit comments

Comments
 (0)