立即学习:https://edu.csdn.net/course/play/26676/338784?utm_source=blogtoedu
if 条件:
操作...
elif 条件:
操作...
else:
操作...
三元操作:
x = 2
a = 'python' if x > 2 else 'physics'
import random
random.randint(start, end)
立即学习:https://edu.csdn.net/course/play/26676/338784?utm_source=blogtoedu
if 条件:
操作...
elif 条件:
操作...
else:
操作...
三元操作:
x = 2
a = 'python' if x > 2 else 'physics'
import random
random.randint(start, end)