变量的使用: def test(request): num=1 s='hello' li=[1,2,['a','b']] dic={'name':'w','age':1} se={1,2,3} tup=(1,2,3,4) def my_test(): return '这是my_test' class test1: def __init__(self,name): self.name=name @classmethod def classM(cls): return '这是类方法' @static