摘要: Python面试重点(web篇) 第一部分 写出常用的bootstrap的样式。 ​ 什么是响应式布局? ​ 请通过jQuery发送ajax请求。 JavaScript与this相关的面试题(4分) name = '老男孩';​info = { name:'alex', age:123, func: 阅读全文
posted @ 2020-03-02 11:51 徐- 阅读(121) 评论(0) 推荐(0) 编辑
摘要: python网络编程 第一部分 1.简述OSI7层模型及其作用? # OSI7层模型应用层 HTTP,HTTPS,FTP表示层会话层传输层 封装端口 TCP/UDP协议网络层 封装IP,ipv4,ipv6数据链路层 封装mac地址,通过arp协议物理层 转换成二进制字节流,封装成数据包,加上各种请求 阅读全文
posted @ 2020-02-27 11:52 徐- 阅读(161) 评论(0) 推荐(0) 编辑
摘要: Python面试(基础篇) 1.简述列举了解的编程语言及语言间的区别? 我了解python,java和c和go 简单的说,python省去了java和c 的大括号,分号 python使用时更加简洁,方便,和易阅读 python是解释型语言,不需要编辑,java和c 需要编译,但是开发周期长,pyth 阅读全文
posted @ 2020-02-26 13:05 徐- 阅读(451) 评论(1) 推荐(0) 编辑
摘要: 前端 内容的展示 browser后端 逻辑的处理 请求和响应 点我传送 html 显示的内容css 样式 美化js 动态效果 HTML 超文本标记语言 超文本:图片 视频 音频 标记 标签 标记 标记的分类 双边标记 双封闭标签 单边标记 单封闭标签 标签的分类 块级标签 h1-h6 行内(内联)标 阅读全文
posted @ 2019-10-08 16:35 徐- 阅读(128) 评论(0) 推荐(0) 编辑
摘要: mysqld install # 安装sql服务 net start mysql # 启动服务 net stop mysql # 停止服务 select user(); # 查看当前用户 mysql -uroot -p # 用户名 密码mysql -uroot -h192.168.12.61 # 连 阅读全文
posted @ 2019-09-25 20:21 徐- 阅读(325) 评论(0) 推荐(0) 编辑
摘要: from gevent import monkeymonkey.patch_all()import geventimport requestsdef f1(url): print(f'GET:{url}') msg = requests.get(url) # 获取的是网站的数据长度 print(le 阅读全文
posted @ 2019-09-19 15:55 徐- 阅读(169) 评论(0) 推荐(0) 编辑
摘要: # # 线程池# import time# from concurrent.futures import ThreadPoolExecutor## pool = ThreadPoolExecutor(15)### def task(n1):# time.sleep(1)# print(f'任务{n1 阅读全文
posted @ 2019-09-19 15:53 徐- 阅读(111) 评论(0) 推荐(0) 编辑
摘要: import threadingfrom queue import Queue q = Queue() def porducer(i): """ 生产者 :param i: :return: """ print('产品:', i) info = {'to': '269', 'text': 'hell 阅读全文
posted @ 2019-09-19 15:52 徐- 阅读(119) 评论(0) 推荐(0) 编辑
摘要: import timeimport threadingclass Singsing: lock = threading.Lock() instance = None def __init__(self, name): self.name = name def __new__(cls, *args, 阅读全文
posted @ 2019-09-18 20:08 徐- 阅读(239) 评论(0) 推荐(0) 编辑
摘要: # 2.基于多线程下载如下地址中的抖音视频。url_list = [ { 'name': 'v1.mp4', 'url': "http://v1-dy.ixigua.com/e94d048065a7ea19efa752b903cdccde/5d81f35d/video/m/220de3e020660 阅读全文
posted @ 2019-09-18 16:10 徐- 阅读(360) 评论(0) 推荐(0) 编辑