风-fmgao

导航

2018年6月13日

文件os.path相关方法

摘要: #!/usr/bin/python3# -*- coding: utf-8 -*-# @Time : 2018/6/13 15:03# @File : abspath_1.pyimport osimport timeprint('abspath >', os.path.abspath(__file_ 阅读全文

posted @ 2018-06-13 15:40 风-fmgao 阅读(138) 评论(0) 推荐(0) 编辑

M3截止阶段小结

摘要: python知识点总结1、copy模块中深浅拷贝copy() deepcopy()2、__new__ 方法参数 def __new__(cls, *args, **kwargs): return object.__new__(cls)3、元类示例: class Mymetaclass(type): 阅读全文

posted @ 2018-06-13 14:18 风-fmgao 阅读(252) 评论(0) 推荐(0) 编辑

小猪配齐

摘要: #!/usr/bin/python3# -*- coding: utf-8 -*-# @Time : 2018/6/13 8:40# @File : peiqi1.pyfrom turtle import *def nose(x, y): # 鼻子 penup() # 提起笔 goto(x, y) 阅读全文

posted @ 2018-06-13 08:43 风-fmgao 阅读(162) 评论(0) 推荐(0) 编辑