1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
| https://www.cnblogs.com/Dominic-Ji/articles/11109067.html 注释 <!--HTML注释--> 浏览器能够查看 { def reg(request): f = 1.1 i = 11 s = 'hello world' l = [11,22,33,44] d = {'username':"jason",'password':123} t = (11,22,33,44,55,66,77) se = {11,22,33,44,55,66} b = True def func(args): print('from func') return '下午有点困' class MyClass(object): def get_obj(self): return 'from obj' @classmethod def get_cls(cls): return 'from cls' @staticmethod def get_func(): return 'from func' obj = MyClass() return render(request,'reg.html',locals())
|