上一页 1 2 3 4 5 6 7 8 ··· 96 下一页
摘要: python numpy 1x3的矩阵乘3x3的矩阵 import numpy as np # 创建1x3的矩阵A A = np.array([[1, 2, 3]]) # 创建3x3的矩阵B B = np.array([[4, 5, 6], [7, 8, 9], [10, 11, 12]]) # 矩 阅读全文
posted @ 2024-07-15 21:15 西北逍遥 阅读(115) 评论(0) 推荐(0)
摘要: python根据三个点计算平面的法向量 import numpy as np # 定义三个点的坐标 point1 = np.array([1, 2, 1]) point2 = np.array([5, 1, 1]) point3 = np.array([4, 6, 2]) # 计算两个向量 vect 阅读全文
posted @ 2024-07-14 21:39 西北逍遥 阅读(260) 评论(0) 推荐(0)
摘要: import numpy as np # 定义三个点的坐标 point1 = np.array([1, 2, 1]) point2 = np.array([5, 1, 1]) point3 = np.array([4, 6, 2]) # 计算两个向量 vector1 = point2 - point 阅读全文
posted @ 2024-07-13 16:58 西北逍遥 阅读(296) 评论(0) 推荐(0)
摘要: unity3d 读取串口 using System.IO.Ports; using UnityEngine; public class SerialCommunication : MonoBehaviour { SerialPort mySerialPort = new SerialPort("CO 阅读全文
posted @ 2024-07-12 00:27 西北逍遥 阅读(158) 评论(0) 推荐(0)
摘要: python字典的四种遍历方式 使用for循环遍历字典的键: my_dict = {'a': 1, 'b': 2, 'c': 3} for key in my_dict: print(key, my_dict[key]) 使用items()方法遍历字典的键值对: my_dict = {'a': 1, 阅读全文
posted @ 2024-07-11 23:20 西北逍遥 阅读(780) 评论(0) 推荐(0)
摘要: python 从list移除-1和非int类型的数据 # 原始列表 #my_list = [1, 2.5, -1, 3, 4.0, -1, 5, 6.6, 7] my_list =[ 0 2 3 4 5 6 7 8 9 10 11 12 13 14 -1 -1 -1 16 22.391 15] # 阅读全文
posted @ 2024-07-10 22:52 西北逍遥 阅读(38) 评论(0) 推荐(0)
摘要: const int xPin = A0; // X轴连接的模拟引脚 const int yPin = A1; // Y轴连接的模拟引脚 void setup() { Serial.begin(9600); // 初始化串口通信 } void loop() { int xValue = analogR 阅读全文
posted @ 2024-07-09 00:07 西北逍遥 阅读(67) 评论(0) 推荐(0)
摘要: Body Clipping Geometry 实体剪裁几何图形是通过使用仅涉及半空间实体的差分运算的构造实体几何模型来表示产品的三维形状。 应使用保持该几何表示的IfcShapeResentation的以下属性值: IfcShapeRepresentation.RepresentationIdent 阅读全文
posted @ 2024-07-07 16:54 西北逍遥 阅读(35) 评论(0) 推荐(0)
摘要: Body SectionedSolidHorizontal Body SectionedSolidHorizontal是通过使用两个或多个闭合轮廓(可能具有不同的尺寸)来表示产品的三维实体,这些轮廓沿准线在指定位置之间扫掠。应使用保持该几何表示的IfcShapeResentation的以下属性值: 阅读全文
posted @ 2024-07-06 23:12 西北逍遥 阅读(36) 评论(0) 推荐(0)
摘要: python批量修改文件后缀名 import os import glob def batch_rename_files(source_dir, old_extension, new_extension): # 确保新的文件名不会与现有文件冲突 def get_new_name(file_path, 阅读全文
posted @ 2024-07-05 23:03 西北逍遥 阅读(172) 评论(0) 推荐(0)
摘要: Body SurfaceModel Geometry 实体曲面模型几何图形是通过曲面模型表示产品的三维形状。应使用保持该几何表示的IfcShapeResentation的以下属性值: IfcShapeRepresentation.RepresentationIdentifier = 'Body' I 阅读全文
posted @ 2024-07-04 23:19 西北逍遥 阅读(34) 评论(0) 推荐(0)
摘要: ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'OpenSSL 1.1.0h 27 Mar 2018' pip uninstall urllib3 阅读全文
posted @ 2024-07-03 23:03 西北逍遥 阅读(16) 评论(0) 推荐(0)
摘要: from typing import Any, Callable, List, Optional, OrderedDict, Sequence, TupleImportError: cannot import name 'OrderedDict' from 'typing' (E:\Anaconda 阅读全文
posted @ 2024-07-02 23:58 西北逍遥 阅读(90) 评论(0) 推荐(0)
摘要: A = [1 2 3; 4 5 6; 7 8 9]; for i = 1:size(A, 1) disp(A(i, :)) end # 阅读全文
posted @ 2024-07-01 22:16 西北逍遥 阅读(12) 评论(0) 推荐(0)
摘要: import cv2 import numpy as np def euler_view_transformation(image, angle, scale, dx, dy): # 获取图像尺寸 (h, w) = image.shape[:2] # 设置旋转矩阵 center = (w // 2, 阅读全文
posted @ 2024-06-30 21:37 西北逍遥 阅读(40) 评论(0) 推荐(0)
摘要: import sqlite3 # 连接到数据库 conn = sqlite3.connect('example.db') # 创建一个Cursor对象 cursor = conn.cursor() # 执行查询语句 cursor.execute('SELECT * FROM some_table') 阅读全文
posted @ 2024-06-27 23:50 西北逍遥 阅读(21) 评论(0) 推荐(0)
摘要: function timestampToDate(timestamp) { const date = new Date(timestamp); const year = date.getFullYear(); const month = String(date.getMonth() + 1).pad 阅读全文
posted @ 2024-06-26 13:44 西北逍遥 阅读(244) 评论(0) 推荐(0)
摘要: import cv2 # 读取图像 image = cv2.imread('input.jpg') # 获取原始图像的宽度和高度 height, width = image.shape[:2] # 定义新的大小 new_width = 640 # 新宽度 new_height = int(new_w 阅读全文
posted @ 2024-06-24 23:45 西北逍遥 阅读(653) 评论(0) 推荐(0)
摘要: self._conn = sqlite3.connect(dbName) ############################# 阅读全文
posted @ 2024-06-20 23:35 西北逍遥 阅读(13) 评论(0) 推荐(0)
摘要: python opencv创建空图片 import cv2 import numpy as np # 定义图片的宽度和高度 width = 640 height = 480 # 创建一个全黑的图片,numpy的zeros函数返回给定形状和类型的新数组,用零填充 # OpenCV使用BGR颜色空间,所 阅读全文
posted @ 2024-06-19 22:30 西北逍遥 阅读(179) 评论(0) 推荐(0)
摘要: clc; clear; % 定义边列表(源节点,目标节点,权重) w1=[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]; s1= [1,1,1, 阅读全文
posted @ 2024-06-18 23:06 西北逍遥 阅读(43) 评论(0) 推荐(0)
摘要: (wind_2021) J:\PytorchProject\yolov5_train_pest_2024061501> (wind_2021) J:\PytorchProject\yolov5_train_pest_2024061501> (wind_2021) J:\PytorchProject\ 阅读全文
posted @ 2024-06-17 09:25 西北逍遥 阅读(37) 评论(0) 推荐(0)
摘要: 错误 C4996 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See 阅读全文
posted @ 2024-06-15 10:41 西北逍遥 阅读(33) 评论(0) 推荐(0)
摘要: Body SurfaceOrSolidModel Geometry 实体曲面或实体模型几何图形是通过曲面或实体建模表示产品的三维形状,并允许混合表示。应使用保持该几何表示的IfcShapeResentation的以下属性值: IfcShapeRepresentation.Representation 阅读全文
posted @ 2024-06-14 20:30 西北逍遥 阅读(20) 评论(0) 推荐(0)
摘要: CD实验 Qt环境 下载 Qt5.12 https://download.qt.io/archive/qt/ ######################## 阅读全文
posted @ 2024-06-13 22:56 西北逍遥 阅读(128) 评论(0) 推荐(0)
摘要: conda create -n wind_2021 python==3.7 (base) C:\Users\bim>conda create -n wind_2021 python==3.7 Channels: - defaults Platform: win-64 Collecting packa 阅读全文
posted @ 2024-06-12 22:10 西北逍遥 阅读(21) 评论(0) 推荐(0)
摘要: #include <QApplication> #include <QScreen> #include <QDebug> int main(int argc, char *argv[]) { QApplication app(argc, argv); // 获取主屏幕 QScreen *screen 阅读全文
posted @ 2024-06-11 23:32 西北逍遥 阅读(235) 评论(0) 推荐(0)
摘要: Body SweptSolid Composite Geometry 下图显示了应用此概念时使用的泛型类和关系。此外,概念可能对通用或标准化的行业实践和场景具有特别重要的意义。对于这些特定的使用场景,下表显示了用户可能采用的一般使用模式的推荐列表。 ######################### 阅读全文
posted @ 2024-06-10 20:47 西北逍遥 阅读(28) 评论(0) 推荐(0)
摘要: Body CSG Geometry 实体CSG几何是通过构造实体几何模型来表示产品的3D形状。应使用保持该几何表示的IfcShapeResentation的以下属性值: IfcShapeRepresentation.RepresentationIdentifier = 'Body' IfcShape 阅读全文
posted @ 2024-06-09 22:40 西北逍遥 阅读(29) 评论(0) 推荐(0)
摘要: import aiohttp import asyncio async def fetch(session, url, data): async with session.post(url, json=data) as response: return await response.text() a 阅读全文
posted @ 2024-06-08 10:24 西北逍遥 阅读(36) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 96 下一页