当前位置: 首页 > news >正文

电商api数据接口技术开发来赞达lazada通过商品ID抓取商品详情信息item_get请求key接入演示

要获取Lazada的商品详情,你需要使用item_get请求。首先,你需要注册一个开发者账号并获取API密钥(App Key和App Secret)。然后,你可以使用以下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://item_get/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&num_iid=267690734&nation=co.th"
headers = {"Accept-Encoding": "gzip","Connection": "close"
}
if __name__ == "__main__":r = requests.get(url, headers=headers)json_obj = r.json()print(json_obj)

请将你的Api Key你的Api Secret你要查询的商品ID替换为实际的值。运行此代码后,你将获得一个包含商品详情的JSON对象。

响应示例

{"item": {"num_iid": "267690734","title": "城市奢华男士鞋正式鞋高跟鞋商务套装男牛津鞋尖头牛津鞋男士皮革婚礼","price": 232,"nick": "URBAN SAFARI","pic_url": "//my-test-11.slatic.net/original/208de91b5132477f8a723c82c56c3a58.jpg","detail_url": "https://www.lazada.co.th/products/oxfords-i267690734-s418579763.html","brand": "No Brand","orginal_price": null,"skus": {"sku": [{"total_price": 0,"price": 232,"orginal_price": 417,"quantity": 1950,"properties": "30097:95204;30585:133117","properties_name": "30097:95204:涂料:白色;30585:133117:大小:38","sku_id": "418579756"},{"total_price": 0,"price": 232,"orginal_price": 417,"quantity": 1949,"properties": "30097:95204;30585:133137","properties_name": "30097:95204:涂料:白色;30585:133137:大小:39","sku_id": "418579757"},{"total_price": 0,"price": 232,"orginal_price": 417,"quantity": 1947,"properties": "30097:95204;30585:133146","properties_name": "30097:95204:涂料:白色;30585:133146:大小:40","sku_id": "418579758"},{"total_price": 0,"price": 232,"orginal_price": 417,"quantity": 1948,"properties": "30097:95204;30585:133152","properties_name": "30097:95204:涂料:白色;30585:133152:大小:41","sku_id": "418579759"},{"total_price": 0,"price": 232,"orginal_price": 417,"quantity": 1946,"properties": "30097:95204;30585:133157","properties_name": "30097:95204:涂料:白色;30585:133157:大小:42","sku_id": "418579760"},{"total_price": 0,"price": 232,"orginal_price": 417,"quantity": 1946,"properties": "30097:95204;30585:133165","properties_name": "30097:95204:涂料:白色;30585:133165:大小:43","sku_id": "418579761"},{"total_price": 0,"price": 232,"orginal_price": 417,"quantity": 1949,"properties": "30097:95204;30585:133172","properties_name": "30097:95204:涂料:白色;30585:133172:大小:44","sku_id": "418579762"},{"total_price": 0,"price": 232,"orginal_price": 417,"quantity": 1949,"properties": "30097:95204;30585:133178","properties_name": "30097:95204:涂料:白色;30585:133178:大小:45","sku_id": "418579763"},{"total_price": 0,"price": 232,"orginal_price": 417,"quantity": 1948,"properties": "30097:95204;30585:133177","properties_name": "30097:95204:涂料:白色;30585:133177:大小:46","sku_id": "418579764"},{"total_price": 0,"price": 232,"orginal_price": 417,"quantity": 1950,"properties": "30097:95204;30585:133198","properties_name": "30097:95204:涂料:白色;30585:133198:大小:47","sku_id": "418579765"},{"total_price": 0,"price": 232,"orginal_price": 417,"quantity": 1950,"properties": "30097:95204;30585:133204","properties_name": "30097:95204:涂料:白色;30585:133204:大小:48","sku_id": "418579766"},{"total_price": 0,"price": 232,"orginal_price": 417,"quantity": 1950,"properties": "30097:4660;30585:133117","properties_name": "30097:4660:涂料:黑色;30585:133117:大小:38","sku_id": "418579767"},{"total_price": 0,"price": 232,"orginal_price": 417,"quantity": 1950,"properties": "30097:4660;30585:133137","properties_name": "30097:4660:涂料:黑色;30585:133137:大小:39","sku_id": "418579768"},{"total_price": 0,"price": 232,"orginal_price": 417,"quantity": 1946,"properties": "30097:4660;30585:133146","properties_name": "30097:4660:涂料:黑色;30585:133146:大小:40","sku_id": "418579769"},{"total_price": 0,"price": 232,"orginal_price": 417,"quantity": 1947,"properties": "30097:4660;30585:133152","properties_name": "30097:4660:涂料:黑色;30585:133152:大小:41","sku_id": "418579770"},{"total_price": 0,"price": 232,"orginal_price": 417,"quantity": 1947,"properties": "30097:4660;30585:133157","properties_name": "30097:4660:涂料:黑色;30585:133157:大小:42","sku_id": "418579771"},{"total_price": 0,"price": 232,"orginal_price": 417,"quantity": 1948,"properties": "30097:4660;30585:133165","properties_name": "30097:4660:涂料:黑色;30585:133165:大小:43","sku_id": "418579772"},{"total_price": 0,"price": 232,"orginal_price": 417,"quantity": 1949,"properties": "30097:4660;30585:133172","properties_name": "30097:4660:涂料:黑色;30585:133172:大小:44","sku_id": "418579773"},{"total_price": 0,"price": 232,"orginal_price": 417,"quantity": 1949,"properties": "30097:4660;30585:133178","properties_name": "30097:4660:涂料:黑色;30585:133178:大小:45","sku_id": "418579774"},{"total_price": 0,"price": 232,"orginal_price": 417,"quantity": 1949,"properties": "30097:4660;30585:133177","properties_name": "30097:4660:涂料:黑色;30585:133177:大小:46","sku_id": "418579775"},{"total_price": 0,"price": 232,"orginal_price": 417,"quantity": 1950,"properties": "30097:4660;30585:133198","properties_name": "30097:4660:涂料:黑色;30585:133198:大小:47","sku_id": "418579776"},{"total_price": 0,"price": 232,"orginal_price": 417,"quantity": 1950,"properties": "30097:4660;30585:133204","properties_name": "30097:4660:涂料:黑色;30585:133204:大小:48","sku_id": "418579777"},{"total_price": 0,"price": 232,"orginal_price": 417,"quantity": 1950,"properties": "30097:4799;30585:133117","properties_name": "30097:4799:涂料:棕色;30585:133117:大小:38","sku_id": "418579778"},{"total_price": 0,"price": 232,"orginal_price": 417,"quantity": 1950,"properties": "30097:4799;30585:133137","properties_name": "30097:4799:涂料:棕色;30585:133137:大小:39","sku_id": "418579779"},{"total_price": 0,"price": 232,"orginal_price": 417,"quantity": 1950,"properties": "30097:4799;30585:133146","properties_name": "30097:4799:涂料:棕色;30585:133146:大小:40","sku_id": "418579780"},{"total_price": 0,"price": 232,"orginal_price": 417,"quantity": 1950,"properties": "30097:4799;30585:133152","properties_name": "30097:4799:涂料:棕色;30585:133152:大小:41","sku_id": "418579781"},{"total_price": 0,"price": 232,"orginal_price": 417,"quantity": 1948,"properties": "30097:4799;30585:133157","properties_name": "30097:4799:涂料:棕色;30585:133157:大小:42","sku_id": "418579782"},{"total_price": 0,"price": 232,"orginal_price": 417,"quantity": 1948,"properties": "30097:4799;30585:133165","properties_name": "30097:4799:涂料:棕色;30585:133165:大小:43","sku_id": "418579783"},{"total_price": 0,"price": 232,"orginal_price": 417,"quantity": 1949,"properties": "30097:4799;30585:133172","properties_name": "30097:4799:涂料:棕色;30585:133172:大小:44","sku_id": "418579784"},{"total_price": 0,"price": 232,"orginal_price": 417,"quantity": 1949,"properties": "30097:4799;30585:133178","properties_name": "30097:4799:涂料:棕色;30585:133178:大小:45","sku_id": "418579785"},{"total_price": 0,"price": 232,"orginal_price": 417,"quantity": 1949,"properties": "30097:4799;30585:133177","properties_name": "30097:4799:涂料:棕色;30585:133177:大小:46","sku_id": "418579786"},{"total_price": 0,"price": 232,"orginal_price": 417,"quantity": 1950,"properties": "30097:4799;30585:133198","properties_name": "30097:4799:涂料:棕色;30585:133198:大小:47","sku_id": "418579787"},{"total_price": 0,"price": 232,"orginal_price": 417,"quantity": 1950,"properties": "30097:4799;30585:133204","properties_name": "30097:4799:涂料:棕色;30585:133204:大小:48","sku_id": "418579788"}]},"prop_imgs": {"prop_img": [{"properties": "30097:4660","url": "//my-test-11.slatic.net/original/00b3ab8196673755dff35a21b7daaf14.jpg"},{"properties": "30097:4799","url": "//my-test-11.slatic.net/original/5cd049094680f6f029cea8de5aba45e6.jpg"},{"properties": "30097:95204","url": "//my-test-11.slatic.net/original/208de91b5132477f8a723c82c56c3a58.jpg"}]},"props_name": "30097:95204:涂料:白色;30097:4660:涂料:黑色;30097:4799:涂料:棕色;30585:133117:大小:38;30585:133137:大小:39;30585:133146:大小:40;30585:133152:大小:41;30585:133157:大小:42;30585:133165:大小:43;30585:133172:大小:44;30585:133178:大小:45;30585:133177:大小:46;30585:133198:大小:47;30585:133204:大小:48","props_img": {"30097:4660": "//my-test-11.slatic.net/original/00b3ab8196673755dff35a21b7daaf14.jpg","30097:4799": "//my-test-11.slatic.net/original/5cd049094680f6f029cea8de5aba45e6.jpg","30097:95204": "//my-test-11.slatic.net/original/208de91b5132477f8a723c82c56c3a58.jpg"},"item_imgs": [{"url": "//my-test-11.slatic.net/original/208de91b5132477f8a723c82c56c3a58.jpg"},{"url": "//my-test-11.slatic.net/original/208de91b5132477f8a723c82c56c3a58.jpg"},{"url": "//my-test-11.slatic.net/original/208de91b5132477f8a723c82c56c3a58.jpg"},{"url": "//my-test-11.slatic.net/original/208de91b5132477f8a723c82c56c3a58.jpg"}],"seller": [],"desc": "<h2><strong>จุดขายสินค้า:</strong></h2><h2><strong>1. หนังคุณภาพสูงหนังนุ่มและละเอียดอ่อนพื้นผิวใสระบายอากาศได้ดีและสะดวกสบาย</strong></h2><h2><strong>2. ตกแต่งโลหะมีสไตล์และสวยงาม</strong></h2><h2><strong>3. ระบายอากาศภายในสะดวกสบายระบายอากาศได้ดีและไม่อับ</strong></h2><h2><strong>4. พื้นรองเท้ายางกันลื่นและทนต่อการสึกหรอ</strong></h2><p style=\"margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><span></span></p><div style=\"width: 100.0%;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;\"><img src=\"https://my-live-01.slatic.net/original/7af35659d117cf122b2d1c1f927b8d8f.jpg\" style=\"width: 100.0%;display: block;\"/></div></div></div><div style=\"width: 800.0px;height: 800.0px;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 800.0px;height: 800.0px;display: block;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 800.0px;height: 800.0px;display: block;\"><img src=\"https://my-live-01.slatic.net/original/804da6ae2bcb7667ecac415be945cc49.jpg\" style=\"width: 800.0px;height: 800.0px;display: block;\"/></div></div></div><div style=\"width: 100.0%;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;\"><img src=\"https://my-live-01.slatic.net/original/e15bd4ccc756c23f1885708e4c8666cb.jpg\" style=\"width: 100.0%;display: block;\"/></div></div></div><span></span><span></span><div style=\"width: 100.0%;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;\"><img src=\"https://my-live-01.slatic.net/original/681c2c9f6ca395dbc0a0069e372bb98d.jpg\" style=\"width: 100.0%;display: block;\"/></div></div></div><span></span><span></span><div style=\"width: 100.0%;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;\"><img src=\"https://my-live-01.slatic.net/original/f7fbb14c71a5256aef4560acbbd92c87.jpg\" style=\"width: 100.0%;display: block;\"/></div></div></div><span></span><span></span><div style=\"width: 100.0%;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;\"><img src=\"https://my-live-01.slatic.net/original/9c5a6247e8eade219cd2acc93e9260da.jpg\" style=\"width: 100.0%;display: block;\"/></div></div></div><span></span><span></span><div style=\"width: 100.0%;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;\"><img src=\"https://my-live-01.slatic.net/original/303110c6c43933073cd72e4aebe68543.jpg\" style=\"width: 100.0%;display: block;\"/></div></div></div><span></span><div style=\"width: 100.0%;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;\"><img src=\"https://my-live-01.slatic.net/original/444635248f5173da9cf1b7296d2ffeb4.jpg\" style=\"width: 100.0%;display: block;\"/></div></div></div><span></span><span></span><div style=\"width: 100.0%;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;\"><img src=\"https://my-live-01.slatic.net/original/e3d2799ebb71bcf6c77523780f0c203b.jpg\" style=\"width: 100.0%;display: block;\"/></div></div></div><span></span><span></span><div style=\"width: 100.0%;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;\"><img src=\"https://my-live-01.slatic.net/original/b66455186c06997362eefad48962f67c.jpg\" style=\"width: 100.0%;display: block;\"/></div></div></div><span></span><span></span><div style=\"width: 100.0%;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;\"><img src=\"https://my-live-01.slatic.net/original/a114bfe261da3d549765000a15f683ae.jpg\" style=\"width: 100.0%;display: block;\"/></div></div></div><span></span><span></span><div style=\"width: 100.0%;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;\"><img src=\"https://my-live-01.slatic.net/original/b83963309c479ab42e8223556461e2d3.jpg\" style=\"width: 100.0%;display: block;\"/></div></div></div><span></span><span></span><div style=\"width: 100.0%;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;\"><img src=\"https://my-live-01.slatic.net/original/a64418e722ff7002c5ee737a4e8a0230.jpg\" style=\"width: 100.0%;display: block;\"/></div></div></div><div style=\"width: 100.0%;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;\"><img src=\"https://my-live-01.slatic.net/original/cbb094264e3b122755d90ebb8880b10d.jpg\" style=\"width: 100.0%;display: block;\"/></div></div></div><span></span><span></span><div style=\"width: 100.0%;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;\"><img src=\"https://my-live-01.slatic.net/original/6c11d757a1e76963eee1aefaa9fa49eb.jpg\" style=\"width: 100.0%;display: block;\"/></div></div></div><span></span><span></span><div style=\"width: 100.0%;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;\"><img src=\"https://my-live-01.slatic.net/original/a3487824abf217ebf4611940384e3c9f.jpg\" style=\"width: 100.0%;display: block;\"/></div></div></div><span></span><span></span><div style=\"width: 100.0%;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><div style=\"width: 100.0%;display: block;\"><img src=\"https://my-live-01.slatic.net/original/1a0f1cda1853bd10eaf066362cd6a55d.jpg\" style=\"width: 100.0%;display: block;\"/></div></div></div><p style=\"margin: 0;padding: 8.0px 0;white-space: pre-wrap;\"><span></span></p>","props_list": {"30097:95204": "涂料:白色","30097:4660": "涂料:黑色","30097:4799": "涂料:棕色","30585:133117": "大小:38","30585:133137": "大小:39","30585:133146": "大小:40","30585:133152": "大小:41","30585:133157": "大小:42","30585:133165": "大小:43","30585:133172": "大小:44","30585:133178": "大小:45","30585:133177": "大小:46","30585:133198": "大小:47","30585:133204": "大小:48"},"seller_info": {"nick": "URBAN SAFARI","tltle": "URBAN SAFARI","shop_name": "URBAN SAFARI","user_num_id": "71550","zhuy": "//www.lazada.co.th/shop/urban-safari/?itemId=267690734&channelSource=pdp","level": 3},"num": 64310,"post_fee": "ฟรี","language": "th","currency_code": "THB","property_alias": "30097:95204:白色;30585:133117:38;30097:95204:白色;30585:133137:39;30097:95204:白色;30585:133146:40;30097:95204:白色;30585:133152:41;30097:95204:白色;30585:133157:42;30097:95204:白色;30585:133165:43;30097:95204:白色;30585:133172:44;30097:95204:白色;30585:133178:45;30097:95204:白色;30585:133177:46;30097:95204:白色;30585:133198:47;30097:95204:白色;30585:133204:48;30097:4660:黑色;30585:133117:38;30097:4660:黑色;30585:133137:39;30097:4660:黑色;30585:133146:40;30097:4660:黑色;30585:133152:41;30097:4660:黑色;30585:133157:42;30097:4660:黑色;30585:133165:43;30097:4660:黑色;30585:133172:44;30097:4660:黑色;30585:133178:45;30097:4660:黑色;30585:133177:46;30097:4660:黑色;30585:133198:47;30097:4660:黑色;30585:133204:48;30097:4799:棕色;30585:133117:38;30097:4799:棕色;30585:133137:39;30097:4799:棕色;30585:133146:40;30097:4799:棕色;30585:133152:41;30097:4799:棕色;30585:133157:42;30097:4799:棕色;30585:133165:43;30097:4799:棕色;30585:133172:44;30097:4799:棕色;30585:133178:45;30097:4799:棕色;30585:133177:46;30097:4799:棕色;30585:133198:47;30097:4799:棕色;30585:133204:48"},"secache": "142ca71401476a77b9155576ca350664","secache_time": 1614924434,"secache_date": "2021-03-05 14:07:14","translate_status": "ok","translate_time": 0.882,"language": {"current_lang": "cn","source_lang": "th"},"error": "","reason": "","error_code": "0000","cache": 1,"api_info": "today: max:10000","execution_time": 0.935,"server_time": "Beijing/2021-03-10 17:07:19","client_ip": "106.6.35.144","call_args": {"num_iid": "267690734","is_promotion": "co.th"},"api_type": "lazada","translate_language": "zh-CN","translate_engine": "google_cn","server_memory": "3.07MB","request_id": "gw-1.60488c46c8c8e"
}

相关文章:

电商api数据接口技术开发来赞达lazada通过商品ID抓取商品详情信息item_get请求key接入演示

要获取Lazada的商品详情&#xff0c;你需要使用item_get请求。首先&#xff0c;你需要注册一个开发者账号并获取API密钥&#xff08;App Key和App Secret&#xff09;。然后&#xff0c;你可以使用以下Python代码示例来获取商品详情&#xff1a; # coding:utf-8 ""&…...

零基础入门多媒体音频(2)-音频焦点2

说实话&#xff0c;android的代码是越来越难以阅读。业务函数里面狗皮膏药似的补丁与日俱增。继上篇简要介绍音频焦点的文章&#xff0c;这篇文章的主要内容是分析audiofocus的实现。看了一下午的相关代码都没找到做audiofocus策略的核心逻辑。目前能看懂的大概包含下面两个逻辑…...

Spark杂谈

文章目录 什么是Spark对比HadoopSpark应用场景Spark数据处理流程什么是RDDSpark架构相关进程入门案例&#xff1a;统计单词数量Spark开启historyServer 什么是Spark Spark是一个用于大规模数据处理的统一计算引擎Spark一个重要的特性就是基于内存计算&#xff0c;从而它的速度…...

【PyTorch】进阶学习:一文详细介绍 torch.save() 的应用场景、实战代码示例

【PyTorch】进阶学习&#xff1a;一文详细介绍 torch.save() 的应用场景、实战代码示例 &#x1f308; 个人主页&#xff1a;高斯小哥 &#x1f525; 高质量专栏&#xff1a;Matplotlib之旅&#xff1a;零基础精通数据可视化、Python基础【高质量合集】、PyTorch零基础入门教程…...

私域流量运营的关键要素和基本步骤

解锁增长的四大关键&#xff1a; 关键要素一&#xff1a;精准营销 精准营销是私域流量运营的核心所在。通过精细化运营和个性化服务&#xff0c;企业可以将普通用户转化为忠实粉丝&#xff0c;提高用户的粘性和转化率。采用数据驱动的精准营销策略&#xff0c;深度挖掘用户需求…...

k8s部署hadoop

&#xff08;作者&#xff1a;陈玓玏&#xff09; 配置和模板参考helm仓库&#xff1a;https://artifacthub.io/packages/helm/apache-hadoop-helm/hadoop 先通过以下命令生成yaml文件&#xff1a; helm template hadoop pfisterer-hadoop/hadoop > hadoop.yaml用kube…...

deepspeed分布式训练在pytorch 扩展(PyTorch extensions)卡住

错误展示&#xff1a; Using /root/.cache/torch_extensions/py310_cu121 as PyTorch extensions root...
 Using /root/.cache/torch_extensions/py310_cu121 as PyTorch extensions root...
 错误表现&#xff1a; 出现在多卡训练过程的pytorch 扩展&#xff0c;deepspee…...

Rust 的 HashMap

在 Rust 中&#xff0c;HashMap 是一个从键&#xff08;key&#xff09;映射到值&#xff08;value&#xff09;的数据结构。它允许你以 O(1) 的平均时间复杂度存储、检索和删除键值对。HashMap 实现了 std::collections::HashMap 结构体&#xff0c;通常通过 use std::collect…...

exporter方式监控达梦数据库

蓝鲸监控 随着国产化和信创的深入&#xff0c;开始普遍使用国产化数据库–如达梦数据库&#xff0c;蓝鲸平台默认没有对其进行监控&#xff0c;但是平台了提供监控告警的能力。比如脚本采集&#xff0c;脚本的是一种灵活和快速的监控采集方式&#xff0c;不同层的监控对象都可…...

供应链安全之被忽略的软件质量管理平台安全

背景 随着我国信息化进程加速&#xff0c;网络安全问题更加凸显。关键信息基础设施和企业单位在满足等保合规的基础上&#xff0c;如何提升网络安全防御能力&#xff0c;降低安全事件发生概率&#xff1f;默安玄甲实验室针对SonarQube供应链安全事件进行分析&#xff0c;强调供…...

python入门(二)

python的安装很方便&#xff0c;我们这里就不再进行讲解&#xff0c;大家可以自己去搜索视频。下面分享一下Python的入门知识点。 执行命令的方式 在安装好python后&#xff0c;有两种方式可以执行命令&#xff1a; 命令行程序文件&#xff0c;后缀名为.py 对于命令行&…...

Mysql,MongoDB,Redis的横纵向对比

一,什么是Mysql Mysql是一款安全,可以跨平台,高效率的数据库系统,运行速度高,安全性能高,支持面向对象,安全性高,并且成本比较低,支持各种开发语言,数据库的存储容量大,有许多的内置函数。 二,什么是MongoDB MongoDB是基于分布式文件存储的数据库,是一个介于关…...

css3 实现html样式蛇形布局

文章目录 1. 实现效果2. 实现代码 1. 实现效果 2. 实现代码 <template><div class"body"><div class"title">CSS3实现蛇形布局</div><div class"list"><div class"item" v-for"(item, index) …...

基于消失点的相机自标定

基于消失点的相机自标定 附赠最强自动驾驶学习资料&#xff1a;直达链接 相机是通过透视投影变换来将3D场景转换为2D图像。在射影变换中&#xff0c;平行线相交于一点称之为消失点。本文详细介绍了两种利用消失点特性的标定方法。目的是为根据实际应用和初始条件选择合适的标…...

Python:filter过滤器

filter() 是 Python 中的一个内置函数&#xff0c;用于过滤序列&#xff0c;过滤掉不符合条件的元素&#xff0c;返回由符合条件元素组成的新列表。该函数接收两个参数&#xff0c;一个是函数&#xff0c;一个是序列&#xff0c;序列的每个元素作为参数传递给函数进行判定&…...

Python函数学习

Python函数学习 1.函数定义 在函数定义阶段只检查函数的语法问题 2.实参形参 ​​​​总结&#xff1a; &#xff08;1&#xff09;位置参数就是经常用的按照位置顺序给出实参的值&#xff1b; &#xff08;2&#xff09;关键字实参形式&#xff1a;key123&#xff1b;放在…...

IDEA中的Project工程、Module模块的概念及创建导入

1、IDEA中的层级关系&#xff1a; project(工程) - module(模块) - package(包) - class(类)/接口具体的&#xff1a; 一个project中可以创建多个module一个module中可以创建多个package一个package中可以创建多个class/接口2、Project和Module的概念&#xff1a; 在 IntelliJ …...

如何快速下载并剪辑B站视频

1、B站手机端右上角缓存视频&#xff1b; 2、在手机文件管理助手中找到android/data/80找到两个文件&#xff0c;video.m4s和audio.m4s&#xff0c;将它们发送到电脑&#xff0c;系统会默认保存在你的个人文件夹里&#xff0c;C:\users\用户名 3、下载ffmepg https://blog.cs…...

智慧矿山新趋势:大数据解决方案一览

1. 背景 随着信息技术的快速发展和矿山管理需求的日益迫切&#xff0c;智慧矿山作为一种创新的矿山管理方式应运而生。智慧矿山借助先进的信息技术&#xff0c;实现对矿山生产、管理、安全等各方面的智能化、高效化、协同化&#xff0c;是矿山行业转型升级的必然趋势。 欢迎关…...

Ubuntu使用Docker部署Nginx容器并结合内网穿透实现公网访问本地服务

目录 ⛳️推荐 1. 安装Docker 2. 使用Docker拉取Nginx镜像 3. 创建并启动Nginx容器 4. 本地连接测试 5. 公网远程访问本地Nginx 5.1 内网穿透工具安装 5.2 创建远程连接公网地址 5.3 使用固定公网地址远程访问 ⛳️推荐 前些天发现了一个巨牛的人工智能学习网站&#…...

AI Agent与Agentic AI:原理、应用、挑战与未来展望

文章目录 一、引言二、AI Agent与Agentic AI的兴起2.1 技术契机与生态成熟2.2 Agent的定义与特征2.3 Agent的发展历程 三、AI Agent的核心技术栈解密3.1 感知模块代码示例&#xff1a;使用Python和OpenCV进行图像识别 3.2 认知与决策模块代码示例&#xff1a;使用OpenAI GPT-3进…...

Vue3 + Element Plus + TypeScript中el-transfer穿梭框组件使用详解及示例

使用详解 Element Plus 的 el-transfer 组件是一个强大的穿梭框组件&#xff0c;常用于在两个集合之间进行数据转移&#xff0c;如权限分配、数据选择等场景。下面我将详细介绍其用法并提供一个完整示例。 核心特性与用法 基本属性 v-model&#xff1a;绑定右侧列表的值&…...

聊聊 Pulsar:Producer 源码解析

一、前言 Apache Pulsar 是一个企业级的开源分布式消息传递平台&#xff0c;以其高性能、可扩展性和存储计算分离架构在消息队列和流处理领域独树一帜。在 Pulsar 的核心架构中&#xff0c;Producer&#xff08;生产者&#xff09; 是连接客户端应用与消息队列的第一步。生产者…...

Linux简单的操作

ls ls 查看当前目录 ll 查看详细内容 ls -a 查看所有的内容 ls --help 查看方法文档 pwd pwd 查看当前路径 cd cd 转路径 cd .. 转上一级路径 cd 名 转换路径 …...

Qwen3-Embedding-0.6B深度解析:多语言语义检索的轻量级利器

第一章 引言&#xff1a;语义表示的新时代挑战与Qwen3的破局之路 1.1 文本嵌入的核心价值与技术演进 在人工智能领域&#xff0c;文本嵌入技术如同连接自然语言与机器理解的“神经突触”——它将人类语言转化为计算机可计算的语义向量&#xff0c;支撑着搜索引擎、推荐系统、…...

vue3 定时器-定义全局方法 vue+ts

1.创建ts文件 路径&#xff1a;src/utils/timer.ts 完整代码&#xff1a; import { onUnmounted } from vuetype TimerCallback (...args: any[]) > voidexport function useGlobalTimer() {const timers: Map<number, NodeJS.Timeout> new Map()// 创建定时器con…...

【HarmonyOS 5 开发速记】如何获取用户信息(头像/昵称/手机号)

1.获取 authorizationCode&#xff1a; 2.利用 authorizationCode 获取 accessToken&#xff1a;文档中心 3.获取手机&#xff1a;文档中心 4.获取昵称头像&#xff1a;文档中心 首先创建 request 若要获取手机号&#xff0c;scope必填 phone&#xff0c;permissions 必填 …...

免费PDF转图片工具

免费PDF转图片工具 一款简单易用的PDF转图片工具&#xff0c;可以将PDF文件快速转换为高质量PNG图片。无需安装复杂的软件&#xff0c;也不需要在线上传文件&#xff0c;保护您的隐私。 工具截图 主要特点 &#x1f680; 快速转换&#xff1a;本地转换&#xff0c;无需等待上…...

【从零学习JVM|第三篇】类的生命周期(高频面试题)

前言&#xff1a; 在Java编程中&#xff0c;类的生命周期是指类从被加载到内存中开始&#xff0c;到被卸载出内存为止的整个过程。了解类的生命周期对于理解Java程序的运行机制以及性能优化非常重要。本文会深入探寻类的生命周期&#xff0c;让读者对此有深刻印象。 目录 ​…...

LLMs 系列实操科普(1)

写在前面&#xff1a; 本期内容我们继续 Andrej Karpathy 的《How I use LLMs》讲座内容&#xff0c;原视频时长 ~130 分钟&#xff0c;以实操演示主流的一些 LLMs 的使用&#xff0c;由于涉及到实操&#xff0c;实际上并不适合以文字整理&#xff0c;但还是决定尽量整理一份笔…...