yl6688

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2023年3月15日

摘要: 1、pip install flash 2、pip3 install -r requirements.txt 3、pip3 install -r requirements.txt -i http://pypi.douban.com/simple --trusted-host pypi.douban. 阅读全文
posted @ 2023-03-15 20:53 追梦寒星 阅读(108) 评论(0) 推荐(0) 编辑

2023年3月5日

摘要: #client端代码 import socket client = socket.socket() client.connect(('127.0.0.1',3999)) while True: content=input('>>>') client.send(bytes(content,'utf-8 阅读全文
posted @ 2023-03-05 15:07 追梦寒星 阅读(82) 评论(0) 推荐(0) 编辑

摘要: from socket import * import time startTime = time.time() target = input('需要扫描的主机: ') t_IP = gethostbyname(target) print('开始扫描主机: ', t_IP) for i in ran 阅读全文
posted @ 2023-03-05 15:01 追梦寒星 阅读(19) 评论(0) 推荐(0) 编辑

摘要: # 导入工具包 from wxauto import WeChat import time """ # 给单人发送消息 to = "文件传输助手" # 要发送的人 msg = "今天的日报请查收:" # 要发送的消息 file = "G:/yzyb2.xls" # 要发送的文件 wx = WeCha 阅读全文
posted @ 2023-03-05 12:13 追梦寒星 阅读(273) 评论(0) 推荐(0) 编辑

2023年2月10日

摘要: #案例1,多文件行遍历循环import fileinputfor line in fileinput.input(files=('g:\main.py','g:\yibao.txt')): print(line) print('hello,world')#循环体fileinput.close() # 阅读全文
posted @ 2023-02-10 20:41 追梦寒星 阅读(24) 评论(0) 推荐(0) 编辑