python判断类对象是否创建 1.判断变量a是否为已经创建 123456 if a is not None: pass# 等价写法,写法简单,但可能会出错if not a: pass 2. 赞微海报分享
近期评论