py工具 使用Python爬虫批量下载小视频 使用Python批量下载小视频 准备工作: 电脑,WiFi,python环境,pycharm 项目目标: 实现python批量下载梨视频 项目思路和流程: 1.导入相关库:requests, re, ... 09月14日 434 views 发表评论 阅读全文
java 线程与线程池 import time from threading import Thread def func(): print('start') time.sleep(2) #延时 模拟百度发出请求 print... 05月01日 1,256 views 发表评论 阅读全文
java datetime 和logging datetime模块 date 日期对象,常用的属性有year,month,day time 时间对象hour,minute,second,毫秒 datetime 日期时间对象,常用... 05月01日 1,336 views 发表评论 阅读全文
学习笔记 class mongoDB # import pymongo # class MyMongodb: # def __init__(self,dataname,collection): # client = pymongo.Mon... 05月01日 1,421 views 发表评论 阅读全文
学习笔记 python连接数据库 import pymysql db_config = { 'host':'127.0.0.1', #全部用字符串 'port':3306, #此处用int 'user':'root', 'passwo... 05月01日 1,144 views 发表评论 阅读全文
学习笔记 mongoDB 进入数据库: mongo 退出数据库:exit mongoDB 的命令是区分大小写的 显示所有库: show dbs 切换/创建库: use 数据库名称 查看所在库: db 删除库: db.drop... 05月01日 1,264 views 发表评论 阅读全文
学习笔记 redis 连接redis: redis-cli 退出: exit 操作服务端: sudo service redis start/stop/restart 切换数据库: select n 数据库没有名称, 默认... 05月01日 983 views 发表评论 阅读全文
学习笔记 mysql 三 desc student; int 只有11位长度 身份证是用varchar alter table 表名 rename to 新表名; 修改表名 alter table tb_name change... 05月01日 693 views 发表评论 阅读全文
学习笔记 Mysql(二) select * from students where id<5; 筛选出id小于5的 select id from student; 筛选出id字段 select * from studen... 05月01日 461 views 发表评论 阅读全文
java Mysql数据库 一 注意事项: 不严格区分大小写,默认大写为程序代码,小写为程序员写的代码。 每个语句都以;或者\g结束 强制数据类型,任何数据都有自己的数据类型 ... 05月01日 404 views 发表评论 阅读全文