会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
ezway
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
···
10
下一页
2017年5月2日
socket post
摘要: c #! bin/usr/evn python # -*- coding:utf-8 -*- import socket,os sk=socket.socket() sk.connect(('127.0.0.1',8888)) BASE_DIR=os.path.dirname(__file__) w
阅读全文
posted @ 2017-05-02 20:42 ezway
阅读(150)
评论(0)
推荐(0)
2017年5月1日
python_socket_cmd
摘要: server #server #!usr/bin/evn python # -*- coding:utf-8 -*- import socket import subprocess sk=socket.socket() addrs=('127.0.0.1',8888) sk.bind(addrs)
阅读全文
posted @ 2017-05-01 17:08 ezway
阅读(133)
评论(0)
推荐(0)
2017年4月27日
网络OSI模型
摘要: 物理层 数据链路层 网络层 传输层 会话层 表示层 应用层
阅读全文
posted @ 2017-04-27 11:14 ezway
阅读(131)
评论(0)
推荐(0)
2017年4月24日
python 单例模式 补下
摘要: 试试
阅读全文
posted @ 2017-04-24 22:58 ezway
阅读(110)
评论(0)
推荐(0)
python 进程和线程
摘要: 进程: 优点:同时利用多个CPU,能够同事进行多个操作 缺点:耗费资源(重新开辟内存空间) 线程: 优点:共享内存,IO操作时候,创造并发操作 缺点:抢占资源 进程和线程都不是越多越好 进程:CPU个数=进程个数 线程:请求上下文切换耗时间计算机中执行任务最小单元是:线程 IO操作不用CPU IO密集型: 多线程 计算密集型: ...
阅读全文
posted @ 2017-04-24 10:42 ezway
阅读(145)
评论(0)
推荐(0)
2017年4月22日
python remove()有可能会出现错误
摘要: import os, sys, pyperclip import easygui as g import re file_name = 'tt3' target_code_file = 'targetcode' new_file = 'new_code2.text' replace_code = r'''void test(void) { int a=10; char s[...
阅读全文
posted @ 2017-04-22 14:54 ezway
阅读(914)
评论(0)
推荐(0)
2017年4月21日
python 装饰器
摘要: def outer(func): def inner(*arg,**kwarg): print('1') ret=func((*arg,**kwarg) print('2') return ret return inner @outer def f1(*arg,**kwarg): return
阅读全文
posted @ 2017-04-21 23:56 ezway
阅读(162)
评论(0)
推荐(0)
python exce()
摘要: 执行当中的代码,可以是字符串形式
阅读全文
posted @ 2017-04-21 23:44 ezway
阅读(232)
评论(0)
推荐(0)
2017年4月20日
python 深浅拷贝原理
摘要: 深浅拷贝原理
阅读全文
posted @ 2017-04-20 09:41 ezway
阅读(170)
评论(0)
推荐(0)
2017年4月17日
python io多路复用
摘要: 用for循环执行多用户访问
阅读全文
posted @ 2017-04-17 23:04 ezway
阅读(166)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
10
下一页
公告