12 全局变量命名规则

jhchena / 2024-09-26 / 原文

全局变量命名规则

#全部变量以后必须全部是大写

USER_LIST = [11,22,3]

def func():
    name = 'asdf'
    USER_LIST.append(12)
    USER_LIST.append(name)

func()
print(USER_LIST)