How to write python if function

If you want to write an if function, you can use the if statement in Python: if condition: code block. Among them, the condition is a condition that must be satisfied. If it is satisfied, the statement in the code block will be executed; if it is not satisfied, the code block will be skipped and the following code will continue to be executed.

Guess you like

Origin blog.csdn.net/weixin_35755434/article/details/129577815