摘要: 题目:输入: 3 2 输出: 1 1 1.50 x = 3 y = 2 # print(int(x / y), x % y) print(x // y, x % y) # // 是Python中数学运算符: 整除(向小取整) print(f'{x/y:.2f}') def myfunc(n): re 阅读全文
posted @ 2023-02-19 22:52 __username 阅读(16) 评论(0) 推荐(1) 编辑
摘要: JavaScript操作DOM节点 包括:JavaScript处理事件、操作节点、操作节点样式 # demo.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Co 阅读全文
posted @ 2023-02-16 20:29 __username 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 写了一份脚本,(*联)可获取链接 自动投递(playwright或者selenium) 仅供学习使用,切勿违法犯罪 **效果图**:boss![](https://img2023.cnblogs.com/blog/3005444/202302/3005444-20230216000952727-12 阅读全文
posted @ 2023-02-15 22:32 __username 阅读(381) 评论(0) 推荐(0) 编辑
摘要: # 日志信息排错(举例) 官网链接:https://docs.python.org/zh-tw/3/howto/logging.html **logger.py** ```python import sys import logging from logging import handlers # 阅读全文
posted @ 2023-02-14 21:15 __username 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 对一个学习网址进行外页爬取 # coding=gbk # -*- coding:uft-8 -*- # @Time: 2023/2/13 # @Author: 十架bgm # @FileName: ca213 import csv import requests import re import o 阅读全文
posted @ 2023-02-13 16:17 __username 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 读入EXCEL中 # coding=gbk # -*- coding:uft-8 -*- # @Time: 2022/12/19 # @Author: 十架bgm # @FileName: 读入excel中 """ 爬取的网站:https://hangzhou.taoche.com/all/ """ 阅读全文
posted @ 2023-02-11 15:50 __username 阅读(11) 评论(0) 推荐(0) 编辑
摘要: udp相当与写信,tcp相当于打电话 1、基于连接与无连接; 2、对系统资源的要求(TCP较多,UDP少); 3、UDP程序结构较简单; 4、流模式与数据报模式 ; 5、TCP保证数据正确性,UDP可能丢包; 6、TCP保证数据顺序,UDP不保证。 TCP三次握手过程 第一次握手:主机A通过向主机B 阅读全文
posted @ 2023-02-10 18:47 __username 阅读(18) 评论(0) 推荐(0) 编辑
摘要: SQL语句笔记 创建部门表 | deptno | dname | location | | | | | | 1 | 技术部 | 一楼A区 | create table dept( --dept部门 deptno int primary key, --deptno部门编号,primary key主键 阅读全文
posted @ 2023-02-07 09:55 __username 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 使用虚拟环境 创建一个 selenium版本>4 因为反爬比较严重 这里没用协议弄 采用selenium 思路:1.先用selenium,获取网页(这里获取外页,内页请求量太大),2.再解析 得到我们想要的结果 避免爬一半被反爬了 部分图 实现代码如下 # 1.获取网页 from selenium 阅读全文
posted @ 2023-02-06 11:51 __username 阅读(113) 评论(0) 推荐(0) 编辑
摘要: # 需要更改的地方 cookie 、 accesstoken、 与之 对应的 用户id、 # coding=gbk # -*- coding:uft-8 -*- # @Time: 2023/2/4 # @Author: 十架bgm # @FileName: pd import datetime im 阅读全文
posted @ 2023-02-05 13:44 __username 阅读(125) 评论(0) 推荐(0) 编辑

本文作者:DIVMonster

本文链接:https://www.cnblogs.com/guangzan/p/12886111.html

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。