摘要: Python Day 30 网络编程 (串讲 FTP作业) 阅读全文
posted @ 2018-06-11 14:37 eailoo 阅读(76) 评论(0) 推荐(0) 编辑
摘要: Python Day 29 网络编程 ( socket中的一些常见方法,socketserver模块) socket中的一些常见方法 socket模块化,验证客户端合法性 import hmac import socket from socket import SOL_SOCKET,SO_REUSE 阅读全文
posted @ 2018-06-07 16:21 eailoo 阅读(148) 评论(0) 推荐(0) 编辑
摘要: Python Day 28 网络编程 (socket远程命令执行, tcp黏包现象,以及struck模块的使用 ) subprocess模块 res=subprocess.Popen(cmd, #字符串命令 shell=True, #使用系统命令 stderr=subprocess.PIPE, #错 阅读全文
posted @ 2018-06-06 19:07 eailoo 阅读(228) 评论(0) 推荐(0) 编辑
摘要: Python Day 27 网络编程 (socket udp) 基于UDP协议的socket udp是无链接的,启动服务之后可以直接接受消息,不需要提前建立链接. 简单版: #一次收发 import socket sk = socket.socket(type=socket.SOCK_DGRAM) 阅读全文
posted @ 2018-06-05 16:45 eailoo 阅读(147) 评论(0) 推荐(0) 编辑
摘要: Python Day 26 网络编程 ( 网络编程基础 socket tcp ) 笔记: https://mubu.com/doc/TMoGNU0xW 楔子: 同一电脑中两个py文件如何交互 软件编程的架构: C/S 架构 (client/server) B/S 架构 (broser/server) 阅读全文
posted @ 2018-06-04 19:36 eailoo 阅读(228) 评论(0) 推荐(0) 编辑
摘要: Python Day 25 串讲 双下方法: 阅读全文
posted @ 2018-06-03 21:54 eailoo 阅读(86) 评论(0) 推荐(0) 编辑
摘要: Python Day 24 面向对象进阶(双下方法 __new__ __del__ item 异常处理) __init__ 初始化方法 __new__ 构造方法(申请内存空间) class A: def __init__(self): print('init') def __new__(cls, * 阅读全文
posted @ 2018-05-31 14:29 eailoo 阅读(110) 评论(0) 推荐(0) 编辑
摘要: Python Day 23 面向对象进阶(内置方法:反射,isinstance和issubclass,__str__和__repr__和其他双下方法) 反射 python面向对象中的反射:通过字符串的形式操作对象相关的属性。python中的一切事物都是对象(都可以使用反射) 使用字符串数据类型的变量 阅读全文
posted @ 2018-05-30 19:55 eailoo 阅读(142) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2018-05-29 15:05 eailoo 阅读(9) 评论(0) 推荐(0) 编辑
摘要: Python Day 21 面向对象 (面向对象的三大特性(二)继承,多态,封装,几个装饰器函数) https://mubu.com/doc/1AqL_M0IbW 继承之钻石继承 多态 封装 几个装饰器函数 class MyFlies: __file_name="log" # @classmetho 阅读全文
posted @ 2018-05-28 16:37 eailoo 阅读(110) 评论(0) 推荐(0) 编辑