码迷,mamicode.com
首页 >  
搜索关键字:datafile os header    ( 149959个结果
遍历文件夹
import os def traverse_dir(path): for root, dirs, files in os.walk(path): for dir in dirs: dir_path = os.path.join(root, dir) print(dir_path) traverse ...
分类:其他好文   时间:2021-07-05 17:23:58    阅读次数:0
bugbounty
1 AngularJS xss payload https://github.com/swisskyrepo/PayloadsAllTheThings/blob/master/XSS%20Injection/XSS%20in%20Angular.md 2 CVE-2020-11110 Vulnera ...
分类:其他好文   时间:2021-07-05 17:22:35    阅读次数:0
Bilibili 爬取历史弹幕
查询历史弹幕 https://api.bilibili.com/x/v2/dm/history 时返回的是 ProtoBuf 格式的数据,需要用 protoc 和 google.protobuf 解析。 流程 首次使用,需要下载安装。https://github.com/protocolbuffer ...
分类:其他好文   时间:2021-07-05 17:06:05    阅读次数:0
今日校园模拟打卡
序 继上次的模拟校园门户登录之后,发现主要在header中存在ua判断字段"sec-ch-ua-mobile":"?1",在没设定此字段时获取到登录的cookie是没办法进行打卡操作的。因此在请求基础headers中带上参数"sec-ch-ua-mobile":"?1",便可以实现打卡操作了。 代码 ...
分类:其他好文   时间:2021-07-05 16:46:17    阅读次数:0
windows下QEMU安装树莓派
1、去树莓派官网下载镜像 https://www.raspberrypi.org/software/operating-systems/#raspberry-pi-os-32-bit 2、去github上下载 https://github.com/dhruvvyas90/qemu-rpi-kerne ...
分类:Windows程序   时间:2021-07-05 16:43:23    阅读次数:0
[2021 spring] CS61A Lab 6: Nonlocal, Mutability, Iterators and Generators
[2021 spring] CS61A Lab 6: Nonlocal, Mutability, Iterators and Generators ...
分类:编程语言   时间:2021-07-02 16:21:32    阅读次数:0
文件/文件夹下文件编码转换【转码】
#!/usr/bin/python # -*- coding: UTF-8 -*- # @auther gaocan 809900210@qq.com import sys import os import re import codecs ''' Codec: See Python`s Stand ...
分类:其他好文   时间:2021-07-01 17:19:46    阅读次数:0
android解决W/System.err: retrofit2.adapter.rxjava3.HttpException: HTTP 400 Bad Request 错误
接口请求中加header有时400报错,请求失败 查看信息应该是header传值有问题,语法格式有误,可能是header中有特殊字符为编码,服务器无法理解此请求。尝试fix,将header全部utf-8编码后再请求。 1 var token = SpUtil.getToken() 2 try { 3 ...
分类:移动开发   时间:2021-07-01 17:04:10    阅读次数:0
26、Android--Retrofit
Retrofit Retrofit是OkHttp的加强版,是一个RESTful的网络加载框架。底层是实用OkHttp封装的。 App应用程序通过 Retrofit 请求网络,实际上是使用 Retrofit 接口层封装请求参数、Header、Url 等信息,之后由 OkHttp 完成后续的请求操作。 ...
分类:移动开发   时间:2021-06-30 18:01:37    阅读次数:0
Python常用代码功能
Python常用代码功能 提取一个文件夹下的所有图片(含子目录)到另一个文件夹下 import os import cv2 import shutil def getFileList(dir,Filelist, ext=None): """ 获取文件夹及其子文件夹中文件列表 输入 dir:文件夹根目 ...
分类:编程语言   时间:2021-06-29 16:00:12    阅读次数:0
149959条   上一页 1 2 3 4 5 ... 14996 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!