mic*_*ael 3 c python increment ternary-operator post-increment
我是Python的新手,如何在Python中执行以下C语言?
i += 1
i++
i = (j == 2)? 1 : 0
Run Code Online (Sandbox Code Playgroud)
谢谢.
Gre*_*ill 19
在Python中:
i += 1
i += 1
i = 1 if j == 2 else 0
Run Code Online (Sandbox Code Playgroud)