会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
FakeZIo
博客园
首页
新随笔
新文章
联系
管理
订阅
2018年11月16日
week8
摘要: 恢复内容开始 week8 1、动态导入模块 2、断言 3、ftp 4、socketserver 1、动态导入模块 1 import importlib 2 a = importlib.import_module('aa.aa') # aa目录下的aa模块 3 print(aa.import_C().
阅读全文
posted @ 2018-11-16 20:52 FakeZIo
阅读(166)
评论(0)
推荐(0)
2018年11月12日
week7
摘要: catalog 1、面向对象 2、类的继承(续):直接继承与间接继承 3、类方法、静态方法、属性方法 4、getitem 5、反射 6、_new_\_metaclass_ 7、异常处理 1、面向对象 2、类的继承 1 class People(object): 2 def __init__(self
阅读全文
posted @ 2018-11-12 10:49 FakeZIo
阅读(152)
评论(0)
推荐(0)
2018年11月8日
week6
摘要: 类的初体验———————— class Dog(0bject): n = 123 #类变量,大家共有的属性,节省开销 name = '我是类name:alex' n_list = [] def __init__(self,name,weight): #构造函数,当调用析构函数是进行实例化 self.
阅读全文
posted @ 2018-11-08 11:38 FakeZIo
阅读(120)
评论(0)
推荐(0)
2018年11月4日
week5
摘要: 本节大纲: 1、模块讲解 2、hashlib and hmac 3、random 4、shelve 5、shutil 6、time and datetime 7、os and sys 8、re 9、xml 10、ConfigParser 1、模块讲解 定义:用一砣代码实现了某个功能的代码集合 导入方
阅读全文
posted @ 2018-11-04 17:50 FakeZIo
阅读(159)
评论(0)
推荐(0)
2018年10月30日
week4_1
摘要: 恢复内容开始 _________________________________列表生成式_____________________ a = [a*2 for a in range(10)] _________________________________生成器__________________
阅读全文
posted @ 2018-10-30 15:35 FakeZIo
阅读(107)
评论(0)
推荐(0)
2018年10月24日
week3
摘要: ___________________________________函数________________________ 返回值 = 0 ,返回 0 返回值 = 1, 返回object 返回值>1 ,返回tuple ''' 日志带日期 ''' def log(a): import time a =
阅读全文
posted @ 2018-10-24 19:58 FakeZIo
阅读(178)
评论(0)
推荐(0)
2018年10月21日
week2
摘要: 三元函数: a,b,c = 1,2,3 d = a if a>b else c print(d) #list 用法: lst = [1,2,3,4,5] print(lst[0:3]) print(lst[-1]) print(lst[-3:]) #从右边往左数4位然后向右输出 print(lst[
阅读全文
posted @ 2018-10-21 08:25 FakeZIo
阅读(149)
评论(0)
推荐(0)
2018年10月13日
WEEK1
摘要: #变量 var1: name = input('name:') age = input('age:) job = input('job:) salary = input('salary:) info = ''' info of %s name:%s age:%s job:%s salry:%s'''
阅读全文
posted @ 2018-10-13 19:19 FakeZIo
阅读(99)
评论(0)
推荐(0)
公告