Gavin‘s 开发笔记

Gavin‘s 开发笔记

  • 首页
  • AI
    • ChatGPT
  • Java
    • Java 基础
    • Java 快餐
    • maven依赖
  • Python
    • Python基础
    • 爬虫技术
    • 自动化测试
    • 量化交易
  • Uniapp
  • Docker
  • MacOS
  • 物联网
    • esp32
  • 其他

爬虫 1 request模块的运用

10月20日 Python,爬虫技术 没有评论 encoding,requests

1、爬虫获取文本内容 import requests res=requests.get('https://lvnvl.cn') #print(res.status_code) res.encoding = 'utf-8' novle = res.text print(novle[:]) 2、爬虫获取图片内容(二进制) i...

Python基础 10 MyQR二维码生成模块

10月20日 Python,Python基础 没有评论 MyQR

# 先导入模块 from MyQR import myqr myqr.run( words='http://weixin.qq.com/r/kzlje9TEE4lsrZAY92yB', # 扫描二维码后,显示的内容,或是跳转的链接 version=5, # 设置容错率 level='H', #...

Python基础 9 smtplib模块发邮件

10月20日 Python,Python基础 没有评论 smtp

1、smtplib模块的使用规范 # smtplib 用于邮件的发信动作 import smtplib # 发信方的信息:发信邮箱,QQ邮箱授权码 from_addr = 'xxx@qq.com' password = '你的授权码数字' # 收信方邮箱 to_addr = 'xxx@qq...

Python基础 8 文件的读写操作

10月20日 Python,Python基础 没有评论 open()

file1 = open('name.txt','r',encoding='utf-8') file2=file1.read() print(file2) file1.close() #open的参数w写入、a追加、r读取 file1 = open('name.txt', 'w',encoding='utf-8') file1.write('张无忌\n') f...

Python基础 7 类&继承类

10月19日 Python,Python基础 没有评论 __init__,class

1、类的初始化传参__init__默认执行的方法 class Chinese: def __init__(self, name, birth, region): self.name = name # self.name = '吴枫' self.birth = birth # self.birth = ...

Python基础 6 取整数的三个方法

10月19日 Python,Python基础 没有评论 int(),math,round()

1、向上取值 import math # 人力计算 number = math.ceil(5.2) print(number) 2、向下取值 number=int(5.5) print(number) 3、四舍五入 number=round(5.3) print(number)

Python基础 5 循环语句for&While

10月19日 Python,Python基础 没有评论 for,while

for用于已明确循环次数,while可用于未知循环次数 #用for循环把诗句打印3遍 for i in range(1,4) : print('明日复明日,明日何其多。') #用while循环把诗句打印3遍 j = 1 while j<4 : print ('明...

Python基础 4 列表(数组)的常用方法

10月19日 Python,Python基础 没有评论

列表的数据循环使用 students = ['党志文', '浦欣然', '罗鸿朗', '姜信然', '居俊德', '宿鸿福', '张成和', '林景辉', '戴英华', '马鸿宝', '郑翰音', '厉和煦', '钟英纵', '卢信然', '任正真', '翟彭勃', '...

Python基础 3 条件判断 IF

10月19日 Python,Python基础 没有评论 if

IF语句的条件判断 stonenumber=0 if stonenumber>=6: print('你拥有了毁灭宇宙的力量') elif 0<stonenumber<=5: print('绯红女巫需要亲手毁掉幻视额头上的心灵宝石') else: pr...

Python基础 2 常用的模块

10月19日 Python,Python基础 没有评论 random,sleep,time

time模块: import time print('如果你想拥有无限的力量和能量,那必须夺得力量宝石') time.sleep(2) print('如果你想扭曲时空和任意地传送,那必须夺得空间宝石') random随机数模块: import rando...

  • 18
  • 19
  • 20
  • 21
  • 22
  • 23(current)
  • 24

文章分类

  • 未分类 (42)
  • MacOS (8)
  • Java (48)
  • Python (40)
  • Docker (30)
  • Dart (1)
  • uniapp (30)
  • 区块链 (4)
  • 挖矿 (1)
  • 魔兽搬砖 (5)
  • 物联网 (9)
  • AI (22)
  • 运营 (1)
  • ES (3)

热门文章

  • docker 修改时区
  • 解决:claude code 无法连接到 Anthropic 服务
  • cursor + context7 + RIPER5.md
  • docker 部署postgres
  • bmad-method使用方法

随机推荐

  • Nginx的常用命令(启动重启停止等)
  • charles开启Charles-Proxy-macOS Proxy 时报错
  • uniapp封装request方法及调用
  • 解决:claude code 无法连接到 Anthropic 服务
  • JAVA快餐 1 创建项目和接口实现基础Maping&List
  • Mac电脑安装brew出现错误的解决方法
  • lombok插件的安装和使用
  • SpringBoot项目Maven依赖无法下载
  • Springboot中redis的用法
  • 门罗币XMR挖矿教程

标签云

ai assert centos charles ChatGPT Date() docker flex https if int() jar Java基础 linux lsof MacOs maven minio mock.patch mongo mybatis-plus mybatisplus mysql Next-Web nginx open() PaginationInterceptor pytest pytest.fixture python3.9 requests socks5 springboot ssh static swagger tyindb uni-app Vercel vue while yield 潘多拉 虚拟机 量化交易

友情链接

  • B 站视频下载
  • Gavin's 钢琴笔记
  • 图片压缩
  • 二维码生成
  • 奇客谷
  • 人邮教育
  • SpringBoot集合教程
  • Ray's Blog
  • Python自动化测试
  • el-admin
  • GIISO写作机器人
  • 微90(AI配音)
  • Mixkit视频素材
  • 牛片网
  • 悦比特
  • 茶杯狐
  • 未来MAC软件下载
  • No视频
  • 图片转文字
  • google play

2011-2023 G.lvovl.cn | 沪ICP备11031715号

代码在页面底部,统计标识不会显示,但不影响统计效果