学习笔记(4):零基础掌握 Python 入门到实战-判断语句,见机行事

it2026-04-19  4

立即学习: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)

相关资源:微信小程序源码-合集6.rar
最新回复(0)