Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はPythonを初めて使用しますが、Pythonで次のCイディオムを実行するにはどうすればよいですか?
i += 1 i++ i = (j == 2)? 1 : 0
ありがとうございました。
Pythonの場合:
i += 1 i += 1 i = 1 if j == 2 else 0