多种语言示例采集数据【淘宝天猫1688拼多多API系列】可高并发线程

长话短说,节约彼此宝贵时间,我们以淘宝商品详情数据为例:

请求方式:HTTPS  POST  GET

请求地址:https://o0b.cn/anzexi

taobao.item_get

公共参数

名称类型必须描述技术交流18179014480
keyString调用key(必须以GET方式拼接在URL中)
secretString调用密钥
api_nameStringAPI接口名称(包括在请求地址中)[item_search,item_get,item_search_shop等]
cacheString[yes,no]默认yes,将调用缓存的数据,速度比较快
result_typeString[json,jsonu,xml,serialize,var_export]返回数据格式,默认为json,jsonu输出的内容中文可以直接阅读
langString[cn,en,ru]翻译语言,默认cn简体中文
versionStringAPI版本

请求参数

请求参数:num_iid=688433900015&is_promotion=1参数说明:num_iid:淘宝商品ID
is_promotion:是否获取取促销价

请求示例

 Curl 

	
-- 请求示例 url 默认请求参数已经URL编码处理
curl -i "https://api-gw.onebound.cn/1688/item_get/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&num_iid=610947572360"

PHP 

<?php// 请求示例 url 默认请求参数已经URL编码处理
// 本示例代码未加密secret参数明文传输,若要加密请参考:https://open.onebound.cn/help/demo/sdk/demo-sign.php
$method = "GET";
$url = "https://api-gw.onebound.cn/1688/item_get/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&num_iid=610947572360";
$curl = curl_init();
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST,FALSE);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER,FALSE);
curl_setopt($curl, CURLOPT_FAILONERROR, false);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, true);
curl_setopt($curl, CURLOPT_ENCODING, "gzip");
var_dump(curl_exec($curl));
?>

Python

# coding:utf-8
"""
Compatible for python2.x and python3.x
requirement: pip install requests
"""
from __future__ import print_function
import requests
# 请求示例 url 默认请求参数已经做URL编码
url = "https://api-gw.onebound.cn/taobao/item_get/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&num_iid=652874751412&is_promotion=1"
headers = {"Accept-Encoding": "gzip","Connection": "close"
}
if __name__ == "__main__":r = requests.get(url, headers=headers)json_obj = r.json()print(json_obj)

响应示例

{"item": {"num_iid": "688433900015","title": "OLAMIMI定制 亲子 中性款 加厚加绒保暖休闲棒球服休闲外套","desc_short": "","price": "155.00","total_price": 0,"suggestive_price": 0,"orginal_price": "155.00","nick": "hohoxixi99","num": "61","min_num": 0,"detail_url": "https://item.taobao.com/item.htm?id=688433900015","pic_url": "//img.alicdn.com/imgextra/i1/4050655529/O1CN01fNHn1h1qiKde6HkeL_!!4050655529.jpg","brand": "other/其他","brandId": "29534","rootCatId": "50008165","cid": "50010518","crumbs": [],"created_time": "","modified_time": "","delist_time": "","desc": "<table align=\"center\" background=\"https://img.alicdn.com/imgextra/i4/T2s4moXH8XXXXXXXXX-350475995.png?p=1324140_hb_v3_client_xxx_top_1_e\" > \n \n  <tr background=\"https://img.alicdn.com/imgextra/i4/T2s4moXH8XXXXXXXXX-350475995.png?p=1324140_hb_v3_client_xxx_top_1_e\"> \n   <td background=\"https://img.alicdn.com/imgextra/i4/T2s4moXH8XXXXXXXXX-350475995.png?p=1324140_hb_v3_client_xxx_top_1_e\"> \n    <div background=\"https://img.alicdn.com/imgextra/i4/T2s4moXH8XXXXXXXXX-350475995.png?p=1324140_hb_v3_client_xxx_top_1_e\">\n      &nbsp;<img src=\"https://www.o0b.cn/i.php?t.png&rid=gw-3.64bf4286eddc5&p=1939419520&k=i_key&t=1690256009\" style=\"display:none\" />","desc_img": [],"item_imgs": [{"url": "https://img.alicdn.com/bao/uploaded/i1/4050655529/O1CN01Ha6uhX1qiKdXvLzFK_!!4050655529.jpg"},{"url": "http://img.alicdn.com/imgextra/i1/4050655529/O1CN01X4Ts731qiKdT4kWpj_!!4050655529.jpg"},{"url": "http://img.alicdn.com/imgextra/i4/4050655529/O1CN01zI8LX41qiKdYkhAiG_!!4050655529.jpg"},{"url": "http://img.alicdn.com/imgextra/i1/4050655529/O1CN01cjhMfk1qiKdW32wmu_!!4050655529.jpg"},{"url": "http://img.alicdn.com/imgextra/i3/4050655529/O1CN01Fd6gX51qiKdcGNTqg_!!4050655529.jpg"}],"item_weight": "","item_size": "","location": "福建福州","post_fee": " 10.00","express_fee": null,"ems_fee": "","shipping_to": "","has_discount": "false","video": {"url": "https://cloud.video.taobao.com/play/u/4050655529/p/2/e/6/t/1/384264855298.mp4?appKey=38829"},"is_virtual": "","sample_id": "","is_promotion": "false","props_name": "1627207:8283632:颜色分类:正红 现货;1627207:29720535:颜色分类:米杏 现货;1627207:941220220:颜色分类:正红 预售;1627207:1064474755:颜色分类:米杏 预售;122216343:33273:参考身高:100cm;122216343:568:参考身高:110cm;122216343:50792021:参考身高:120cm;122216343:3285954:参考身高:130cm;122216343:3376466:参考身高:140cm;122216343:917:参考身高:150cm;122216343:26774:参考身高:160cm;122216343:1735712377:参考身高:165cm(亲子)","prop_imgs": {"prop_img": [{"properties": "1627207:8283632","url": "//img.alicdn.com/imgextra/i1/4050655529/O1CN01X4Ts731qiKdT4kWpj_!!4050655529.jpg"},{"properties": "1627207:29720535","url": "//img.alicdn.com/imgextra/i1/4050655529/O1CN01cjhMfk1qiKdW32wmu_!!4050655529.jpg"},{"properties": "1627207:941220220","url": "//img.alicdn.com/imgextra/i2/4050655529/O1CN01bP27MQ1qiKddRYUY8_!!4050655529.jpg"},{"properties": "1627207:1064474755","url": "//img.alicdn.com/imgextra/i1/4050655529/O1CN01cjhMfk1qiKdW32wmu_!!4050655529.jpg"}]},"property_alias": "","props": [{"name": "品牌","value": "other/其他"},{"name": "适用年龄","value": "13岁"},{"name": "面料","value": "其他/other"},{"name": "图案","value": "纯色"},{"name": "风格","value": "休闲"},{"name": "产地","value": "中国大陆"},{"name": "省份","value": "福建省"},{"name": "地市","value": "福州市"},{"name": "适用性别","value": "男女通用"},{"name": "模特实拍","value": "实拍有模特"},{"name": "衣门襟","value": "套头"},{"name": "是否带帽子","value": "否"},{"name": "颜色分类","value": "正红,米杏,正红 预售,米杏 预售"},{"name": "货号","value": "22444"},{"name": "参考身高","value": "100cm,110cm,120cm,130cm,140cm,150cm,160cm,165cm(亲子)"},{"name": "适用季节","value": "冬季"},{"name": "厚薄","value": "厚款"},{"name": "安全等级","value": "B类"},{"name": "材质成分","value": "其他材质100%"}],"total_sold": "589","skus": {"sku": [{"price": "155","total_price": 0,"orginal_price": "155","properties": "1627207:8283632;122216343:33273","properties_name": "1627207:8283632:颜色分类:正红 现货;122216343:33273:参考身高:100cm","quantity": "12","sku_id": "4908646413264"},{"price": "155","total_price": 0,"orginal_price": "155","properties": "1627207:8283632;122216343:568","properties_name": "1627207:8283632:颜色分类:正红 现货;122216343:568:参考身高:110cm","quantity": "18","sku_id": "4908646413265"},{"price": "155","total_price": 0,"orginal_price": "155","properties": "1627207:8283632;122216343:50792021","properties_name": "1627207:8283632:颜色分类:正红 现货;122216343:50792021:参考身高:120cm","quantity": "0","sku_id": "4908646413266"},{"price": "155","total_price": 0,"orginal_price": "155","properties": "1627207:8283632;122216343:3285954","properties_name": "1627207:8283632:颜色分类:正红 现货;122216343:3285954:参考身高:130cm","quantity": "0","sku_id": "4908646413267"},{"price": "155","total_price": 0,"orginal_price": "155","properties": "1627207:8283632;122216343:3376466","properties_name": "1627207:8283632:颜色分类:正红 现货;122216343:3376466:参考身高:140cm","quantity": "0","sku_id": "4908646413268"},{"price": "155","total_price": 0,"orginal_price": "155","properties": "1627207:8283632;122216343:917","properties_name": "1627207:8283632:颜色分类:正红 现货;122216343:917:参考身高:150cm","quantity": "0","sku_id": "4908646413269"},{"price": "175","total_price": 0,"orginal_price": "175","properties": "1627207:8283632;122216343:26774","properties_name": "1627207:8283632:颜色分类:正红 现货;122216343:26774:参考身高:160cm","quantity": "0","sku_id": "4908646413270"},{"price": "205","total_price": 0,"orginal_price": "205","properties": "1627207:8283632;122216343:1735712377","properties_name": "1627207:8283632:颜色分类:正红 现货;122216343:1735712377:参考身高:165cm(亲子)","quantity": "0","sku_id": "4908646413271"},{"price": "155","total_price": 0,"orginal_price": "155","properties": "1627207:29720535;122216343:33273","properties_name": "1627207:29720535:颜色分类:米杏 现货;122216343:33273:参考身高:100cm","quantity": "7","sku_id": "4908646413272"},{"price": "155","total_price": 0,"orginal_price": "155","properties": "1627207:29720535;122216343:568","properties_name": "1627207:29720535:颜色分类:米杏 现货;122216343:568:参考身高:110cm","quantity": "14","sku_id": "4908646413273"},{"price": "155","total_price": 0,"orginal_price": "155","properties": "1627207:29720535;122216343:50792021","properties_name": "1627207:29720535:颜色分类:米杏 现货;122216343:50792021:参考身高:120cm","quantity": "3","sku_id": "4908646413274"},{"price": "155","total_price": 0,"orginal_price": "155","properties": "1627207:29720535;122216343:3285954","properties_name": "1627207:29720535:颜色分类:米杏 现货;122216343:3285954:参考身高:130cm","quantity": "6","sku_id": "4908646413275"},{"price": "155","total_price": 0,"orginal_price": "155","properties": "1627207:29720535;122216343:3376466","properties_name": "1627207:29720535:颜色分类:米杏 现货;122216343:3376466:参考身高:140cm","quantity": "0","sku_id": "4908646413276"},{"price": "155","total_price": 0,"orginal_price": "155","properties": "1627207:29720535;122216343:917","properties_name": "1627207:29720535:颜色分类:米杏 现货;122216343:917:参考身高:150cm","quantity": "0","sku_id": "4908646413277"},{"price": "175","total_price": 0,"orginal_price": "175","properties": "1627207:29720535;122216343:26774","properties_name": "1627207:29720535:颜色分类:米杏 现货;122216343:26774:参考身高:160cm","quantity": "0","sku_id": "4908646413278"},{"price": "205","total_price": 0,"orginal_price": "205","properties": "1627207:29720535;122216343:1735712377","properties_name": "1627207:29720535:颜色分类:米杏 现货;122216343:1735712377:参考身高:165cm(亲子)","quantity": "1","sku_id": "4908646413279"},{"price": "155","total_price": 0,"orginal_price": "155","properties": "1627207:941220220;122216343:33273","properties_name": "1627207:941220220:颜色分类:正红 预售;122216343:33273:参考身高:100cm","quantity": "0","sku_id": "4911308829264"},{"price": "155","total_price": 0,"orginal_price": "155","properties": "1627207:941220220;122216343:568","properties_name": "1627207:941220220:颜色分类:正红 预售;122216343:568:参考身高:110cm","quantity": "0","sku_id": "4911308829267"},{"price": "155","total_price": 0,"orginal_price": "155","properties": "1627207:941220220;122216343:50792021","properties_name": "1627207:941220220:颜色分类:正红 预售;122216343:50792021:参考身高:120cm","quantity": "0","sku_id": "4911308829266"},{"price": "155","total_price": 0,"orginal_price": "155","properties": "1627207:941220220;122216343:3285954","properties_name": "1627207:941220220:颜色分类:正红 预售;122216343:3285954:参考身高:130cm","quantity": "0","sku_id": "4911308829263"},{"price": "155","total_price": 0,"orginal_price": "155","properties": "1627207:941220220;122216343:3376466","properties_name": "1627207:941220220:颜色分类:正红 预售;122216343:3376466:参考身高:140cm","quantity": "0","sku_id": "4911308829265"},{"price": "155","total_price": 0,"orginal_price": "155","properties": "1627207:941220220;122216343:917","properties_name": "1627207:941220220:颜色分类:正红 预售;122216343:917:参考身高:150cm","quantity": "0","sku_id": "4911308829268"},{"price": "175","total_price": 0,"orginal_price": "175","properties": "1627207:941220220;122216343:26774","properties_name": "1627207:941220220:颜色分类:正红 预售;122216343:26774:参考身高:160cm","quantity": "0","sku_id": "4911308829262"},{"price": "205","total_price": 0,"orginal_price": "205","properties": "1627207:941220220;122216343:1735712377","properties_name": "1627207:941220220:颜色分类:正红 预售;122216343:1735712377:参考身高:165cm(亲子)","quantity": "0","sku_id": "4911308829261"},{"price": "155","total_price": 0,"orginal_price": "155","properties": "1627207:1064474755;122216343:33273","properties_name": "1627207:1064474755:颜色分类:米杏 预售;122216343:33273:参考身高:100cm","quantity": "0","sku_id": "4911308829256"},{"price": "155","total_price": 0,"orginal_price": "155","properties": "1627207:1064474755;122216343:568","properties_name": "1627207:1064474755:颜色分类:米杏 预售;122216343:568:参考身高:110cm","quantity": "0","sku_id": "4911308829259"},{"price": "155","total_price": 0,"orginal_price": "155","properties": "1627207:1064474755;122216343:50792021","properties_name": "1627207:1064474755:颜色分类:米杏 预售;122216343:50792021:参考身高:120cm","quantity": "0","sku_id": "4911308829258"},{"price": "155","total_price": 0,"orginal_price": "155","properties": "1627207:1064474755;122216343:3285954","properties_name": "1627207:1064474755:颜色分类:米杏 预售;122216343:3285954:参考身高:130cm","quantity": "0","sku_id": "4911308829255"},{"price": "155","total_price": 0,"orginal_price": "155","properties": "1627207:1064474755;122216343:3376466","properties_name": "1627207:1064474755:颜色分类:米杏 预售;122216343:3376466:参考身高:140cm","quantity": "0","sku_id": "4911308829257"},{"price": "155","total_price": 0,"orginal_price": "155","properties": "1627207:1064474755;122216343:917","properties_name": "1627207:1064474755:颜色分类:米杏 预售;122216343:917:参考身高:150cm","quantity": "0","sku_id": "4911308829260"},{"price": "175","total_price": 0,"orginal_price": "175","properties": "1627207:1064474755;122216343:26774","properties_name": "1627207:1064474755:颜色分类:米杏 预售;122216343:26774:参考身高:160cm","quantity": "0","sku_id": "4911308829254"},{"price": "205","total_price": 0,"orginal_price": "205","properties": "1627207:1064474755;122216343:1735712377","properties_name": "1627207:1064474755:颜色分类:米杏 预售;122216343:1735712377:参考身高:165cm(亲子)","quantity": "0","sku_id": "4911308829253"}]},"seller_id": "4050655529","sales": 4,"shop_id": "292864958","props_list": {"1627207:8283632": "颜色分类:正红 现货","1627207:29720535": "颜色分类:米杏 现货","1627207:941220220": "颜色分类:正红 预售","1627207:1064474755": "颜色分类:米杏 预售","122216343:33273": "参考身高:100cm","122216343:568": "参考身高:110cm","122216343:50792021": "参考身高:120cm","122216343:3285954": "参考身高:130cm","122216343:3376466": "参考身高:140cm","122216343:917": "参考身高:150cm","122216343:26774": "参考身高:160cm","122216343:1735712377": "参考身高:165cm(亲子)"},"seller_info": {"nick": "hohoxixi99","item_score": "4.8 ","score_p": "4.9 ","delivery_score": "4.9 ","shop_type": "C","user_num_id": "4050655529","sid": "292864958","title": "olamimi kids 原创设计","zhuy": "https://shop292864958.taobao.com/","shop_name": "olamimi kids 原创设计"},"tmall": false,"error": "","warning": "","url_log": [],"fav_count": "1632","fans_count": "48.6万","freight": "快递: 10.00元","props_imgs": {"prop_img": [{"properties": "1627207:8283632","url": "//img.alicdn.com/imgextra/i1/4050655529/O1CN01X4Ts731qiKdT4kWpj_!!4050655529.jpg"},{"properties": "1627207:29720535","url": "//img.alicdn.com/imgextra/i1/4050655529/O1CN01cjhMfk1qiKdW32wmu_!!4050655529.jpg"},{"properties": "1627207:941220220","url": "//img.alicdn.com/imgextra/i2/4050655529/O1CN01bP27MQ1qiKddRYUY8_!!4050655529.jpg"},{"properties": "1627207:1064474755","url": "//img.alicdn.com/imgextra/i1/4050655529/O1CN01cjhMfk1qiKdW32wmu_!!4050655529.jpg"}]},"_ddf": "xdl","promo_type": null,"props_img": {"1627207:8283632": "//img.alicdn.com/imgextra/i1/4050655529/O1CN01X4Ts731qiKdT4kWpj_!!4050655529.jpg","1627207:29720535": "//img.alicdn.com/imgextra/i1/4050655529/O1CN01cjhMfk1qiKdW32wmu_!!4050655529.jpg","1627207:941220220": "//img.alicdn.com/imgextra/i2/4050655529/O1CN01bP27MQ1qiKddRYUY8_!!4050655529.jpg","1627207:1064474755": "//img.alicdn.com/imgextra/i1/4050655529/O1CN01cjhMfk1qiKdW32wmu_!!4050655529.jpg"},"format_check": "ok","shop_item": [],"relate_items": []},"error": "","secache": "34fdd707d1ee41e51ef476f0e9d2d047","secache_time": 1690256009,"secache_date": "2023-07-25 11:33:29","translate_status": "","translate_time": 0,"language": {"default_lang": "cn","current_lang": "cn"},

 

 

 

 

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/6775.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

rust学习-智能指针

适用场景 有一个在编译时未知大小的类型&#xff0c;想在需要确切大小的上下文使用该类型值 示例1 无意义的例子&#xff1a;将一个单独的值存放在堆上并不是很有意义&#xff0c;b更应该放到栈上 fn main() {let b Box::new(5);// box 在 main 的末尾离开作用域时&#x…

[论文阅读笔记24]Social-STGCNN: A Social Spatio-Temporal GCNN for Human Traj. Pred.

论文: 论文地址 代码: 代码地址 作者在这篇文章中直接用GNN对目标的轨迹时空特征进行建模, 并用时序CNN进行预测, 代替了训练难度较大和速度较慢的RNN类方法. 0. Abstract 行人轨迹预测是一个比较有挑战性的任务, 有着许多的应用. 一个行人的轨迹不仅是由自己决定的, 而且受…

产品设计思考:如何平衡用户习惯和用户体验

在产品设计领域&#xff0c;平衡用户习惯与用户体验之间的关系是一个重要而复杂的任务。 用户习惯是指用户在长期使用产品过程中逐渐形成的一种行为模式&#xff0c;而用户体验则是用户在与产品交互时所感受到的整体感受。 在追求良好的用户体验的同时&#xff0c;还需要考虑用…

2023 年第二届钉钉杯大学生大数据挑战赛 初赛 B:美国纽约公共自行车使用量预测分析 问题二Python代码分析

2023 年第二届钉钉杯大学生大数据挑战赛 初赛 B&#xff1a;美国纽约公共自行车使用量预测分析 问题二 相关链接 【2023 年第二届钉钉杯大学生大数据挑战赛】 初赛 B&#xff1a;美国纽约公共自行车使用量预测分析 问题一Python代码分析 【2023 年第二届钉钉杯大学生大数据挑…

进阶级!美创暗数据发现和分类分级系统获中国信通院权威测评

近日&#xff0c;美创科技暗数据发现和分类分级系统顺利通过中国信通院“数据分类分级能力检验进阶级”认证&#xff0c;获颁数据安全产品检验证书。 数据分类分级进阶级评测通过主动探测识别率、被动探测识别率、用户相关数据识别准确率、分级标识准确率等技术指标的检测&…

AMEYA360代理线:ROHM开发出EcoGaN™减少服务器和AC适配器等的损耗和体积!

全球知名半导体制造商ROHM&#xff08;总部位于日本京都市&#xff09;面向数据服务器等工业设备和AC适配器等消费电子设备的一次侧电源*1&#xff0c;开发出集650V GaN HEMT*2和栅极驱动用驱动器等于一体的Power Stage IC“BM3G0xxMUV-LB”&#xff08;BM3G015MUV-LB、BM3G007…

【C++】继承

&#x1f307;个人主页&#xff1a;平凡的小苏 &#x1f4da;学习格言&#xff1a;命运给你一个低的起点&#xff0c;是想看你精彩的翻盘&#xff0c;而不是让你自甘堕落&#xff0c;脚下的路虽然难走&#xff0c;但我还能走&#xff0c;比起向阳而生&#xff0c;我更想尝试逆风…

了解Unity编辑器之组件篇Video(二)

Video Player组件&#xff1a;用于在游戏中播放视频的组件。它提供了一系列属性来控制视频的播放、显示和交互。 1.Source&#xff08;视频源&#xff09;&#xff1a;用于指定视频的来源。可以选择两种不同的视频源类型&#xff1a; &#xff08;1&#xff09;Vieo Clip&#…

RDIFramework.NET CS敏捷开发框架 V6.0发布(支持.NET6+、Framework双引擎,全网唯一)

全新RDIFramework.NET V6.0 CS敏捷开发框架发布&#xff0c;全网唯一支持.NET6&#xff0c;Framework双引擎&#xff0c;降低开发成本&#xff0c;提高产品质量&#xff0c;提升用户体验与开发团队稳定性&#xff0c;做软件就选RDIFramework.NET开发框架。 1、RDIFramework.NET…

《网络是怎样连接的》(二.1)

(83条消息) 《网络是怎样连接的》&#xff08;一&#xff09;_qq_38480311的博客-CSDN博客 本文主要取材于 《网络是怎样连接的》 第二章。 目录 &#xff08;1&#xff09;创建套接字 &#xff08;2&#xff09;连接服务器 &#xff08;3&#xff09;收发数据 &#xf…

jdk,jre和jvm三者的关系和区别

目录 一、三者的关系 二、JDK的概念 三、JRE的概念 四、JVM的概念 五、三者区别 一、三者的关系 从图中可以清楚地看到&#xff0c;他们之间的关系是JDK包含JRE, JRE又包含JVM。 因此&#xff0c;JDK包含JRE和JVM。 JDK JRE Java 开发工具包 [Java,Javac,Javadoc,Javap…

【stm32L152】段码屏驱动注解、MX_LCD_Init()初始化失败的解决方法

文章目录 断码屏驱动补充MX_LCD_Init()驱动初始化失败 断码屏驱动补充 已经有大神写过较详细的教程&#xff1a;https://blog.csdn.net/CSDN_Gao_16/article/details/115463499&#xff0c;但这篇博文仍然比较抽象&#xff0c;我看了好多遍才看明白-_-||&#xff0c;为了节省和…

【Java基础教程】(四十四)IO篇 · 上:解析Java文件操作——File类、字节流与字符流,分析字节输出流、字节输入流、字符输出流和字符输入流的区别

Java基础教程之IO操作 上 &#x1f539;本节学习目标1️⃣ 文件操作类&#xff1a;File2️⃣ 字节流与字符流2.1 字节输出流&#xff1a;OutputStream2.2 字节输入流&#xff1a;InputStream2.3 字符输出流&#xff1a;Writer2.4 字符输入流&#xff1a;Reader2.5 字节流与字符…

电脑新装系统优化,win10优化,win10美化

公司发了新的笔记本&#xff0c;分为几步做 1.系统优化,碍眼的关掉。防火墙关掉、页面美化 2.安装必备软件及驱动 3.数据迁移 4.开发环境配置 目录 目录复制 这里写目录标题 目录1.系统优化关掉底部菜单栏花里胡哨 2.安装必备软件及驱动新电脑安装360 1.系统优化 关掉底部菜单…

es通过rest接口_search、_delete_by_query查询与删除数据

1、rest接口查询数据 rest查询: http://localhost:9200/index_name/_search 查询表达式&#xff1a; {"query": {"wildcard": {"accountID": {"value": "v*"}}} }postman请求截图&#xff1a; 2、使用Rest接口删除数据 …

re学习(23)BUUCTF 刮开有奖(中间变量的获取)

INT_PTR __stdcall DialogFunc(HWND hDlg, UINT a2, WPARAM a3, LPARAM a4) {const char *v4; // esiconst char *v5; // ediint v7[2]; // [esp8h] [ebp-20030h] BYREF 虽然看名称不连续&#xff0c;但是通过看偏移地址&#xff0c;可知&#xff0c;这些变量在内存中是连续的&…

iOS--属性关键字

定义 chat&#xff1a; 在iOS开发中&#xff0c;属性关键字是用于声明类的属性&#xff08;实例变量&#xff09;的修饰符。属性关键字可以影响属性的访问权限、内存管理和生成相关的getter和setter方法。 属性关键字有哪些&#xff1f; 分类属性关键字原子性atomic、nonato…

Android ConstraintLayout使用攻略

原文链接 Android ConstraintLayout使用攻略 ConstraintLayout是新一代的布局&#xff0c;它汲取了众家之长&#xff0c;把布局的概念进行了大统一&#xff0c;灵活且强大&#xff0c;基本上可以干掉以前所有的常用布局&#xff08;LinearLayout, RelativeLayout和FrameLayout…

【重点:单例模式】特殊类设计

请设计一个类&#xff0c;只能在堆上创建对象 方式如下&#xff1a; 将构造函数设置为私有&#xff0c;防止外部直接调用构造函数在栈上创建对象。向外部提供一个获取对象的static接口&#xff0c;该接口在堆上创建一个对象并返回。将拷贝构造函数设置为私有&#xff0c;并且…

webrtc QOS方法二.4(flexfec 实现可优化点)

一、冗余报文和媒体报文组织结构优化点 以单帧10个媒体报文&#xff0c;冗余度20%为例。这里webrtc输出要有10个媒体包2个冗余包。webrtc输出的报文序列如下&#xff1a; 代码实现如下&#xff1a; UlpfecGenerator::AddPacketAndGenerateFec&#xff1a;攒够足够的帧 Forwar…