摘要:
1:非数学运算 字符串表示: __repr__ __str__ 集合,序列相关: __len__ __getitem__ __setitem__ __delitem__ __contains__ 迭代相关: __iter__ __next__ 可调用: __call__ 上下文管理: __enter 阅读全文
posted @ 2018-07-22 15:17
孙龙-程序员
阅读(935)
评论(0)
推荐(0)
摘要:
# -*- coding: utf-8 -*- __author__ = 'bobby' a=1 b="abc" print(type(1)) print(type(int)) print(type(b)) print(type(str)) class Student: pass stu = Student() print(type(stu)) print(type(Student)... 阅读全文
posted @ 2018-07-22 15:03
孙龙-程序员
阅读(89)
评论(0)
推荐(0)
浙公网安备 33010602011771号