#python
# 删除全部用户自定义变量
import re
for x in dir():
    if not re.match('^__',x) and x!="re":
        exec(" ".join(("del",x)))
Logo

CSDN联合极客时间,共同打造面向开发者的精品内容学习社区,助力成长!

更多推荐