![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python学习
xiaoyinyan0213
这个作者很懒,什么都没留下…
展开
-
python3.6编写命令行地址薄程序
import pickle import sys import os filename = 'xyy.data' # 创建一个类来表示人的信息 class member: def __init__(self, name, mail, phone, address): self.name = name self.mail = mail self.phone = p...原创 2018-11-06 22:42:25 · 219 阅读 · 0 评论 -
python第二天
以下代码含有的知识点 def info(object,spacing=10,collapse=1): ''' print method and doc strings. Takes moudle,class,list,dictory,or string.''' methodList = [method for method in dir(object) if calla...原创 2018-11-08 21:14:33 · 85 阅读 · 0 评论 -
对象和面向对象
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Nov 8 21:35:57 2018 @author: xyy """ import os import sys from collections import UserDict def stripnulls(data): '''原创 2018-11-08 22:35:07 · 76 阅读 · 0 评论