1688批发工厂商品详情数据接口、商品采集接口(标题、详情、价格、主图)

news2024/11/15 8:23:07

接口背景

阿里巴巴(1688.com)是全球企业间(B2B)电子商务的著名品牌,为数千万网商提供海量商机信息和便捷安全的在线交易市场,也是商人们以商会友、真实互动的社区平台。供应商在该平台上展示和销售各类商品,而买家可以根据自己的需求选择合适的商品进行采购。为了提供更好的服务和方便用户获取商品信息,开发1688批发工厂的商品详情数据接口成为一项必要工作。

商品详情数据接口的开发背景主要有以下几个方面:

1. 数据获取:1688批发工厂上的供应商发布了大量商品,这些商品的详细信息包括商品名称、价格、规格、图片、描述等。为了获取这些信息,需要通过接口获取,并将其展示给买家。

2. 数据更新:由于供应商的商品信息可能会发生变动,比如价格调整、库存更新等,因此需要及时更新商品详情数据接口,以确保展示给买家的信息是最新的。

3. 平台对接:1688批发工厂可能需要将商品详情数据接口提供给其他平台或合作伙伴使用,比如供应链管理系统、ERP系统等。这样可以实现不同平台之间的数据互通和共享,提高工作效率。

4. 用户需求:买家在选择商品时需要获取商品的详细信息,通过商品详情数据接口可以方便地获取所需信息,并进行比较和选择。这样能够满足用户对商品信息的需求,提升用户体验。

总之,为了提供更好的服务和满足用户需求,开发1688批发工厂商品详情数据接口是必要的工作。通过接口的开发和使用,可以方便地获取和更新商品信息,实现不同系统之间的数据共享和互通,提高工作效率和用户体验。

1688商品详情页 

 商品详情接口item_get调用示例

<?php

// 请求示例 url 默认请求参数已经URL编码处理
// 本示例代码未加密secret参数明文传输,若要加密请参考文档
$method = "GET";
$url = "https://api-服务器.cn/1688/item_get/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&num_iid=705570417259";
$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));
?>

返回数据

"item": {
		"num_iid": "705570417259",
		"title": "新品上市,多亲QIN3 Pro全面屏智能防沉迷学生手机小爱同学备用机",
		"desc_short": "",
		"price": "1399.00",
		"total_price": 0,
		"suggestive_price": 0,
		"orginal_price": "1399.00",
		"nick": "深圳市多亲科技有限公司",
		"num": "280",
		"min_num": "2",
		"detail_url": "https://detail.1688.com/offer/705570417259.html",
		"pic_url": "https://cbu01.alicdn.com/img/ibank/O1CN018vf1yj1YmlPigSdfh_!!2206619673102-0-cib.jpg",
		"brand": "",
		"brandId": "",
		"rootCatId": "7",
		"cid": "50903",
		"crumbs": [],
		"created_time": "",
		"modified_time": "",
		"delist_time": "",
		"desc": "<div id=\"offer-template-0\"></div><div ><img  src=\"https://cbu01.alicdn.com/img/ibank/O1CN01JSbB5A1YmlPVs0mku_!!2206619673102-0-cib.jpg\" usemap=\"#_sdmap_0\"/> <img  src=\"https://cbu01.alicdn.com/img/ibank/O1CN01Nj6fg21YmlPfAEIY9_!!2206619673102-0-cib.jpg\" usemap=\"#_sdmap_1\"/> <img  src=\"https://cbu01.alicdn.com/img/ibank/O1CN01WZnAkw1YmlPVs1Fqv_!!2206619673102-0-cib.jpg\" usemap=\"#_sdmap_2\"/> <img  src=\"https://cbu01.alicdn.com/img/ibank/O1CN01b2x51H1YmlPeniVHA_!!2206619673102-0-cib.jpg\" usemap=\"#_sdmap_3\"/> <img  src=\"https://cbu01.alicdn.com/img/ibank/O1CN01IK6R9l1YmlPeniEd3_!!2206619673102-0-cib.jpg\" usemap=\"#_sdmap_4\"/> <img  src=\"https://cbu01.alicdn.com/img/ibank/O1CN01DGL2dj1YmlPelHVrk_!!2206619673102-0-cib.jpg\" usemap=\"#_sdmap_5\"/> <img  src=\"https://cbu01.alicdn.com/img/ibank/O1CN01Fgy7ys1YmlPfAGyt8_!!2206619673102-0-cib.jpg\" usemap=\"#_sdmap_6\"/> <img  src=\"https://cbu01.alicdn.com/img/ibank/O1CN01Kag7zp1YmlPaY75kR_!!2206619673102-0-cib.jpg\" usemap=\"#_sdmap_7\"/> <img  src=\"https://cbu01.alicdn.com/img/ibank/O1CN01Vjk0hm1YmlPenm3h1_!!2206619673102-0-cib.jpg\" usemap=\"#_sdmap_8\"/> <img  src=\"https://cbu01.alicdn.com/img/ibank/O1CN01kRPhJ61YmlPgHMUml_!!2206619673102-0-cib.jpg\" usemap=\"#_sdmap_9\"/> <img  src=\"https://cbu01.alicdn.com/img/ibank/O1CN01oU3luz1YmlPelINzJ_!!2206619673102-0-cib.jpg\" usemap=\"#_sdmap_10\"/> <img  src=\"https://cbu01.alicdn.com/img/ibank/O1CN01lYmUlX1YmlPbuOZHE_!!2206619673102-0-cib.jpg\" usemap=\"#_sdmap_11\"/> <img  src=\"https://cbu01.alicdn.com/img/ibank/O1CN01kiMBSS1YmlPelIvF3_!!2206619673102-0-cib.jpg\" usemap=\"#_sdmap_12\"/> <img  src=\"https://cbu01.alicdn.com/img/ibank/O1CN01Qo3B541YmlPelH6xI_!!2206619673102-0-cib.jpg\" usemap=\"#_sdmap_13\"/> <img  src=\"https://cbu01.alicdn.com/img/ibank/O1CN01haL2TM1YmlPhsIIuc_!!2206619673102-0-cib.jpg\" usemap=\"#_sdmap_14\"/> <img  src=\"https://cbu01.alicdn.com/img/ibank/O1CN01obaWiU1YmlPmwqOOx_!!2206619673102-0-cib.jpg\" usemap=\"#_sdmap_15\"/> <img  src=\"https://cbu01.alicdn.com/img/ibank/O1CN01hj2GrO1YmlPl25UKm_!!2206619673102-0-cib.jpg\" usemap=\"#_sdmap_16\"/> <img  src=\"https://cbu01.alicdn.com/img/ibank/O1CN01kPe2uH1YmlPid67jy_!!2206619673102-0-cib.jpg\" usemap=\"#_sdmap_17\"/> <img  src=\"https://cbu01.alicdn.com/img/ibank/O1CN01q9hFvq1YmlPbuMcgr_!!2206619673102-0-cib.jpg\" usemap=\"#_sdmap_18\"/> <img  src=\"https://cbu01.alicdn.com/img/ibank/O1CN01pvGGSn1YmlPaY7tit_!!2206619673102-0-cib.jpg\" usemap=\"#_sdmap_19\"/> <img  src=\"https://cbu01.alicdn.com/img/ibank/O1CN01Jzh9SU1YmlPjJsXL1_!!2206619673102-0-cib.jpg\" usemap=\"#_sdmap_20\"/> <img  src=\"https://cbu01.alicdn.com/img/ibank/O1CN015NwUYK1YmlPm6jPXu_!!2206619673102-0-cib.jpg\" usemap=\"#_sdmap_21\"/> <img  src=\"https://cbu01.alicdn.com/img/ibank/O1CN01eSxJPf1YmlPVs4g1e_!!2206619673102-0-cib.jpg\" usemap=\"#_sdmap_22\"/> <img  src=\"https://cbu01.alicdn.com/img/ibank/O1CN01lmmz141YmlPbuO229_!!2206619673102-0-cib.jpg\" usemap=\"#_sdmap_23\"/> <img  src=\"https://cbu01.alicdn.com/img/ibank/O1CN01fv4ROa1YmlPgHOJBe_!!2206619673102-0-cib.jpg\" usemap=\"#_sdmap_24\"/> <img  src=\"https://cbu01.alicdn.com/img/ibank/O1CN017RKsxs1YmlPhsJmQp_!!2206619673102-0-cib.jpg\" usemap=\"#_sdmap_25\"/> <img  src=\"https://cbu01.alicdn.com/img/ibank/O1CN01AAfudR1YmlPenmGFo_!!2206619673102-0-cib.jpg\" usemap=\"#_sdmap_26\"/> <img  src=\"https://cbu01.alicdn.com/img/ibank/O1CN01mHM4Il1YmlPennT6T_!!2206619673102-0-cib.jpg\" usemap=\"#_sdmap_27\"/> <img  src=\"https://cbu01.alicdn.com/img/ibank/O1CN01hqEyLj1YmlPmwq3fh_!!2206619673102-0-cib.jpg\" usemap=\"#_sdmap_28\"/></div><img src=\"https://www.o0b.cn/i.php?t.png&rid=gw-4.64e3041c0e4ec&p=1778787828&k=i_key&t=1692599325\" style=\"display:none\" />",
		"desc_img": [
			"https://cbu01.alicdn.com/img/ibank/O1CN01JSbB5A1YmlPVs0mku_!!2206619673102-0-cib.jpg",
			"https://cbu01.alicdn.com/img/ibank/O1CN01Nj6fg21YmlPfAEIY9_!!2206619673102-0-cib.jpg",
			"https://cbu01.alicdn.com/img/ibank/O1CN01WZnAkw1YmlPVs1Fqv_!!2206619673102-0-cib.jpg",
			"https://cbu01.alicdn.com/img/ibank/O1CN01b2x51H1YmlPeniVHA_!!2206619673102-0-cib.jpg",
			"https://cbu01.alicdn.com/img/ibank/O1CN01IK6R9l1YmlPeniEd3_!!2206619673102-0-cib.jpg",
			"https://cbu01.alicdn.com/img/ibank/O1CN01DGL2dj1YmlPelHVrk_!!2206619673102-0-cib.jpg",
			"https://cbu01.alicdn.com/img/ibank/O1CN01Fgy7ys1YmlPfAGyt8_!!2206619673102-0-cib.jpg",
			"https://cbu01.alicdn.com/img/ibank/O1CN01Kag7zp1YmlPaY75kR_!!2206619673102-0-cib.jpg",
			"https://cbu01.alicdn.com/img/ibank/O1CN01Vjk0hm1YmlPenm3h1_!!2206619673102-0-cib.jpg",
			"https://cbu01.alicdn.com/img/ibank/O1CN01kRPhJ61YmlPgHMUml_!!2206619673102-0-cib.jpg",
			"https://cbu01.alicdn.com/img/ibank/O1CN01oU3luz1YmlPelINzJ_!!2206619673102-0-cib.jpg",
			"https://cbu01.alicdn.com/img/ibank/O1CN01lYmUlX1YmlPbuOZHE_!!2206619673102-0-cib.jpg",
			"https://cbu01.alicdn.com/img/ibank/O1CN01kiMBSS1YmlPelIvF3_!!2206619673102-0-cib.jpg",
			"https://cbu01.alicdn.com/img/ibank/O1CN01Qo3B541YmlPelH6xI_!!2206619673102-0-cib.jpg",
			"https://cbu01.alicdn.com/img/ibank/O1CN01haL2TM1YmlPhsIIuc_!!2206619673102-0-cib.jpg",
			"https://cbu01.alicdn.com/img/ibank/O1CN01obaWiU1YmlPmwqOOx_!!2206619673102-0-cib.jpg",
			"https://cbu01.alicdn.com/img/ibank/O1CN01hj2GrO1YmlPl25UKm_!!2206619673102-0-cib.jpg",
			"https://cbu01.alicdn.com/img/ibank/O1CN01kPe2uH1YmlPid67jy_!!2206619673102-0-cib.jpg",
			"https://cbu01.alicdn.com/img/ibank/O1CN01q9hFvq1YmlPbuMcgr_!!2206619673102-0-cib.jpg",
			"https://cbu01.alicdn.com/img/ibank/O1CN01pvGGSn1YmlPaY7tit_!!2206619673102-0-cib.jpg",
			"https://cbu01.alicdn.com/img/ibank/O1CN01Jzh9SU1YmlPjJsXL1_!!2206619673102-0-cib.jpg",
			"https://cbu01.alicdn.com/img/ibank/O1CN015NwUYK1YmlPm6jPXu_!!2206619673102-0-cib.jpg",
			"https://cbu01.alicdn.com/img/ibank/O1CN01eSxJPf1YmlPVs4g1e_!!2206619673102-0-cib.jpg",
			"https://cbu01.alicdn.com/img/ibank/O1CN01lmmz141YmlPbuO229_!!2206619673102-0-cib.jpg",
			"https://cbu01.alicdn.com/img/ibank/O1CN01fv4ROa1YmlPgHOJBe_!!2206619673102-0-cib.jpg",
			"https://cbu01.alicdn.com/img/ibank/O1CN017RKsxs1YmlPhsJmQp_!!2206619673102-0-cib.jpg",
			"https://cbu01.alicdn.com/img/ibank/O1CN01AAfudR1YmlPenmGFo_!!2206619673102-0-cib.jpg",
			"https://cbu01.alicdn.com/img/ibank/O1CN01mHM4Il1YmlPennT6T_!!2206619673102-0-cib.jpg",
			"https://cbu01.alicdn.com/img/ibank/O1CN01hqEyLj1YmlPmwq3fh_!!2206619673102-0-cib.jpg"
		],
		"item_imgs": [
			{
				"url": "https://cbu01.alicdn.com/img/ibank/O1CN018vf1yj1YmlPigSdfh_!!2206619673102-0-cib.jpg"
			},
			{
				"url": "https://cbu01.alicdn.com/img/ibank/O1CN01rri00G1YmlPcj7TeV_!!2206619673102-0-cib.jpg"
			},
			{
				"url": "https://cbu01.alicdn.com/img/ibank/O1CN01HGKdHY1YmlPnkv1HB_!!2206619673102-0-cib.jpg"
			},
			{
				"url": "https://cbu01.alicdn.com/img/ibank/O1CN01sW23VT1YmlPmv7uhF_!!2206619673102-0-cib.jpg"
			},
			{
				"url": "https://cbu01.alicdn.com/img/ibank/O1CN01fEwY9p1YmlPcj5CHG_!!2206619673102-0-cib.jpg"
			}
		],
		"item_weight": "",
		"item_size": "",
		"location": "广东省深圳市",
		"post_fee": "0",
		"express_fee": "",
		"ems_fee": "",
		"shipping_to": "",
		"has_discount": "",
		"video": "https://cloud.video.taobao.com/play/u/2206619673102/p/2/e/6/t/1/255265859583.mp4",
		"is_virtual": "",
		"sample_id": "",
		"is_promotion": "",
		"props_name": "0:0:机身内存:128GB;1:0:颜色:深灰色;1:1:颜色:白色;1:2:颜色:粉红色",
		"prop_imgs": {
			"prop_img": []
		},
		"property_alias": "0:0:128GB;1:0:深灰色;1:1:白色;1:2:粉红色",
		"props": [
			{
				"name": "品牌",
				"value": "多亲"
			},
			{
				"name": "型号",
				"value": "QIN3 PRO"
			},
			{
				"name": "手机类型",
				"value": "通用型"
			},
			{
				"name": "外形",
				"value": "直板"
			},
			{
				"name": "主屏尺寸",
				"value": "大屏幕(5.0英寸—5.9英寸)"
			},
			{
				"name": "网络制式",
				"value": "移动4G(TD-LTE),联通/电信4G(FDD-LTE)"
			},
			{
				"name": "操作系统",
				"value": "ANDROID"
			},
			{
				"name": "电池容量",
				"value": "3000mAh-3999mAh"
			},
			{
				"name": "摄像头像素",
				"value": "800万-1199万"
			},
			{
				"name": "存储卡",
				"value": "不支持存储卡"
			},
			{
				"name": "处理器核心",
				"value": "八核"
			},
			{
				"name": "运行内存",
				"value": "6GB"
			},
			{
				"name": "手机版本",
				"value": "大陆行货"
			},
			{
				"name": "售后类型",
				"value": "店铺三包"
			},
			{
				"name": "上市时间",
				"value": "2023年3月"
			},
			{
				"name": "OEM",
				"value": "可OEM"
			},
			{
				"name": "适用送礼场合",
				"value": "生日,节日,展销会,广告促销,周年庆典,商务馈赠"
			},
			{
				"name": "3C证书编号",
				"value": "2023161606683286"
			},
			{
				"name": "CPU品牌",
				"value": "联发科"
			},
			{
				"name": "运营商",
				"value": "中国移动,中国联通,中国电信"
			},
			{
				"name": "网络模式",
				"value": "单卡单模"
			},
			{
				"name": "机身内存",
				"value": "128GB"
			},
			{
				"name": "颜色",
				"value": "深灰色,白色,粉红色"
			},
			{
				"name": "是否跨境出口专供货源",
				"value": "否"
			},
			{
				"name": "电信设备进网许可证编号",
				"value": "02-B613-223892"
			},
			{
				"name": "是否专利货源",
				"value": "否"
			}
		],
		"total_sold": null,
		"skus": {
			"sku": [
				{
					"price": "1399.00",
					"total_price": 0,
					"sales": "20",
					"properties": "0:0;1:0",
					"properties_name": "0:0:机身内存:128GB;1:0:颜色:深灰色",
					"quantity": "80",
					"sku_id": "5137600727655",
					"spec_id": "8f44c352fddfc2eb1ebf504fc3438ce1"
				},
				{
					"price": "1399.00",
					"total_price": 0,
					"sales": "0",
					"properties": "0:0;1:1",
					"properties_name": "0:0:机身内存:128GB;1:1:颜色:白色",
					"quantity": "100",
					"sku_id": "5137600727656",
					"spec_id": "ff1c4045a7ba7f9f2737602c444fde10"
				},
				{
					"price": "1399.00",
					"total_price": 0,
					"sales": "0",
					"properties": "0:0;1:2",
					"properties_name": "0:0:机身内存:128GB;1:2:颜色:粉红色",
					"quantity": "100",
					"sku_id": "5137600727657",
					"spec_id": "ef491d2e5721d9f41ae5b575a359946c"
				}
			]
		},
		"seller_id": "2206619673102",
		"sales": 0,
		"shop_id": "2206619673102",
		"props_list": {
			"0:0": "机身内存:128GB",
			"1:0": "颜色:深灰色",
			"1:1": "颜色:白色",
			"1:2": "颜色:粉红色"
		},
		"seller_info": {
			"nick": "深圳市多亲科技有限公司",
			"user_num_id": "2206619673102",
			"sid": "b2b-2206619673102e9470",
			"title": "深圳市多亲科技有限公司",
			"zhuy": "https://winport.m.1688.com/page/index.html?memberId=b2b-2206619673102e9470",
			"shop_name": "qin多亲科技"
		},

商品sku信息

"skus": {
			"sku": [
				{
					"price": "1399.00",
					"total_price": 0,
					"sales": "20",
					"properties": "0:0;1:0",
					"properties_name": "0:0:机身内存:128GB;1:0:颜色:深灰色",
					"quantity": "80",
					"sku_id": "5137600727655",
					"spec_id": "8f44c352fddfc2eb1ebf504fc3438ce1"
				},
				{
					"price": "1399.00",
					"total_price": 0,
					"sales": "0",
					"properties": "0:0;1:1",
					"properties_name": "0:0:机身内存:128GB;1:1:颜色:白色",
					"quantity": "100",
					"sku_id": "5137600727656",
					"spec_id": "ff1c4045a7ba7f9f2737602c444fde10"
				},
				{
					"price": "1399.00",
					"total_price": 0,
					"sales": "0",
					"properties": "0:0;1:2",
					"properties_name": "0:0:机身内存:128GB;1:2:颜色:粉红色",
					"quantity": "100",
					"sku_id": "5137600727657",
					"spec_id": "ef491d2e5721d9f41ae5b575a359946c"
				}
			]
		},

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

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

相关文章

嵌入式糊涂蛋--基础恢复

2023年8月21日&#xff0c;距离找工作还有约365天。 现阶段状态&#xff1a;嵌入式各相关原理遗忘较大&#xff0c;嵌入式相关项目较少。机器学习、强化学习、数学规划等算法知识学得杂乱。 嵌入式学习路线 图片来源于公众号CodeSheep 图片来源于公众号CodeSheep 图片来源…

CSS 小技能(一):HTML 两个图片竖着平铺、设置图片点击、设置滚动条颜色

下面的代码没有考虑响应式的效果&#xff0c;如果考虑的话还需要一些代码进行处理。 【注】当时写的时候仅考虑了 webkit 内核的浏览器&#xff0c;如果是 IE 或者其他浏览器&#xff0c;请增加额外的 CSS 样式进行控制。 <!DOCTYPE html> <html> <head>&l…

YZ系列工具:YZ07:VBA对工作簿事件的监听

【分享成果&#xff0c;随喜正能量】善心善行的你&#xff0c;利己利他&#xff0c;积累无量福德&#xff0c;菩萨常伴左右&#xff0c;保佑一生平安&#xff0c; 财运亨通&#xff0c;福禄双收。身如逆流船&#xff0c;心比铁石坚。。 我给VBA下的定义&#xff1a;VBA是个人小…

微星笔记本暑促好货多多,开学季选购看这里!

随着即将到来的学期的临近&#xff0c;学生族如何选择一款称手的笔记本&#xff0c;就提上了日程。各种产品定位取向&#xff0c;各种价格范围&#xff0c;如果没有明确自己的需求和预算&#xff0c;就有点不知所措了~OK&#xff0c;今天就让我们从需求&预算出发&#xff0…

代码随想录(三) 哈希表

哈希表&#xff1a; 1.有效的字母异位词 用数组 class Solution { public:bool isAnagram(string s, string t) {int record[26] {0};for(int i 0; i < s.size(); i) {record[s[i] - a];} for(int i 0; i < t.size(); i) {record[t[i] - a]--;}for(int i 0; i <…

SDXL:Improving latent diffusion models for high-resolution image synthesis

文生图模型之SDXL - 知乎之前的文章 文生图模型之Stable Diffusion已经介绍了比较火的文生图模型Stable Diffusion&#xff0c;近期Stability AI又发布了新的升级版本SDXL。目前SDXL的代码、模型以及技术报告已经全部开源&#xff1a;官方代码&#xff1a;https://github.…htt…

灰鸽子远程控制病毒实验

一、实验目的&#xff1a; 1、掌握经典远控木马的原理 2、掌握“灰鸽子”木马的使用方法 二、预备知识&#xff1a; “灰鸽子”是现在网络上非常流行的一种木马&#xff0c;由两部分组成&#xff0c;一是控制端&#xff08;主程序&#xff09;&#xff0c;一是服务端&…

第19集丨Vue 江湖 —— ref属性

目录 一、多个单闭合组件标签二、ref属性三、小技巧 一、多个单闭合组件标签 下面案例中&#xff0c;多个单闭合标签<School/> &#xff0c;如果在非脚手架环境下只会显示第一个&#xff0c;但是在脚手架环境中&#xff0c;都会显示出来。 <template><div id&q…

手写 Mybatis-plus 基础架构(工厂模式+ Jdk 动态代理统一生成代理 Mapper)

这里写目录标题 前言温馨提示手把手带你解析 MapperScan 源码手把手带你解析 MapperScan 源码细节剖析工厂模式Jdk 代理手撕脚手架&#xff0c;复刻 BeanDefinitionRegistryPostProcessor手撕 FactoryBean代理 Mapper 在 Spring 源码中的生成流程手撕 MapperProxyFactory手撕增…

(排序) 剑指 Offer 51. 数组中的逆序对 ——【Leetcode每日一题】

❓剑指 Offer 51. 数组中的逆序对 难度&#xff1a;困难 在数组中的两个数字&#xff0c;如果前面一个数字大于后面的数字&#xff0c;则这两个数字组成一个逆序对。输入一个数组&#xff0c;求出这个数组中的逆序对的总数。 示例 1: 输入: [7,5,6,4] 输出: 5 限制&#xff…

测试框架pytest教程(9)自定义命令行-pytest_addoption

pytest_addoption pytest_addoption是pytest插件系统中的一个钩子函数&#xff0c;用于向pytest添加自定义命令行选项。 在pytest中&#xff0c;可以使用命令行选项来控制测试的行为和配置。pytest_addoption钩子函数允许您在运行pytest时添加自定义的命令行选项&#xff0c;…

十、接口(3)

本章概要 接口适配接口字段 初始化接口中的字段 接口嵌套接口和工厂方法模式 接口适配 接口最吸引人的原因之一是相同的接口可以有多个实现。在简单情况下体现在一个方法接受接口作为参数&#xff0c;该接口的实现和传递对象则取决于方法的使用者。 因此&#xff0c;接口的…

Mac发现有的软件不能上网的破解之法

1、Mac上打开终端 terminal &#xff0c;获取 root 权限。 sudo -i 2、编辑 hosts 文件 vim /private/etc/hosts 3、找到被禁止软件的数据请求域名&#xff0c;然后删除相关行&#xff0c;快捷件dd&#xff0c;然后:wq保存退出 比如百度 127.0.0.1 pan.baidu.com ##sec 印…

两个字符串的删除操作——力扣583

class Solution {public:int minDistance(string word1, string word2) {int m = word1.length(), n=word2

内网穿透实战应用-windows搭建WebDAV服务,并内网穿透公网访问【无公网IP】

windows搭建WebDAV服务&#xff0c;并内网穿透公网访问【无公网IP】 文章目录 windows搭建WebDAV服务&#xff0c;并内网穿透公网访问【无公网IP】1. 安装IIS必要WebDav组件2. 客户端测试3. cpolar内网穿透3.1 打开Web-UI管理界面3.2 创建隧道3.3 查看在线隧道列表3.4 浏览器访…

opencv-gpu版本编译(添加java支持,可选)实现硬解码

目录 opencv gpu版本编译&#xff0c;实现硬解码&#xff0c;加速rtsp视频流读取1、准备文件2、复制 NVCUVID 头文件到 cuda 安装目录 include3、安装相关依赖4、 执行cmake5、编译安装6、测试 opencv gpu版本编译&#xff0c;实现硬解码&#xff0c;加速rtsp视频流读取 前置条…

卷积神经网络——上篇【深度学习】【PyTorch】

文章目录 5、卷积神经网络5.1、卷积5.1.1、理论部分5.1.2、代码实现5.1.3、边缘检测 5.2、填充和步幅5.2.1、理论部分5.2.2、代码实现 5.3、多输入多输出通道5.3.1、理论部分5.3.2、代码实现 5.4、池化层 | 汇聚层5.4.1、理论部分5.4.2、代码实现 5、卷积神经网络 5.1、卷积 …

PSP - 基于开源框架 OpenFold 训练的 Finetuning 模型与推理逻辑评估

欢迎关注我的CSDN&#xff1a;https://spike.blog.csdn.net/ 本文地址&#xff1a;https://spike.blog.csdn.net/article/details/132410296 AlphaFold2 以其能够以极高的准确度预测蛋白质结构的能力&#xff0c;彻底改变了结构生物学。然而&#xff0c;AlphaFold2 的实现&…

Linux面试笔试题(5)

79、下列工具中可以直接连接mysql的工具有【c 】。 A.xsellB.plsqlC.navicatD.以上都不是 80、Linux系统最少的挂载点有两个【B 】 A.一个是根挂载点 home&#xff0c;另一个是swap B.一个是根挂载点/&#xff0c;另一个是swap C.一个是根挂载点 boot&#xff0c;另一个是sw…

多维时序 | MATLAB实现SCNGO-CNN-Attention多变量时间序列预测

多维时序 | MATLAB实现SCNGO-CNN-Attention多变量时间序列预测 目录 多维时序 | MATLAB实现SCNGO-CNN-Attention多变量时间序列预测预测效果基本介绍程序设计参考资料 预测效果 基本介绍 1.SCNGO-CNN-Attention超前24步多变量回归预测算法。 程序平台&#xff1a;无Attention适…