摘要: %s 字符串 (采用str()的显示)%r 字符串 (采用repr()的显示)%c 单个字符%b 二进制整数%d 十进制整数%i 十进制整数%o 八进制整数%x 十... 阅读全文
posted @ 2018-11-14 16:17 Moke丶青 阅读(234) 评论(0) 推荐(0) 编辑
摘要: type() 方法的语法:type(object)type(name, bases, dict)参数 返回值name -- 类的名称。 bases -- 基类的元组。 dict -- 字典,类内定义的命名空间... 阅读全文
posted @ 2018-11-14 15:23 Moke丶青 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 内置函数 abs() divmod() input() open() staticmethod() all() enumerate() int() ... 阅读全文
posted @ 2018-11-14 15:01 Moke丶青 阅读(86) 评论(0) 推荐(0) 编辑