上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 96 下一页
摘要: IfcConstraintEnum 类型定义 IfcConstraintNum是用于限定约束的枚举。 IFC2.0中的新枚举 Enumeration definition ConstantDescription HARD Qualifies a constraint such that it mus 阅读全文
posted @ 2023-09-24 06:17 西北逍遥 阅读(30) 评论(0) 推荐(0)
摘要: IfcConstraint 实体定义 IfcConstraint用于定义可应用于对象或特性值的约束或限制值或边界条件。 约束可以细分为用户定义的约束和系统定义的约束。用户定义的约束由用户应用,并且仅限于对象特性等高级定义。系统定义的约束可以应用于任何对象属性,通常由应用程序定义以强制执行数据验证或参 阅读全文
posted @ 2023-09-22 16:24 西北逍遥 阅读(48) 评论(0) 推荐(0)
摘要: unity3d 清空控制台 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using AssemblyCSharp; using System; 阅读全文
posted @ 2023-09-21 15:41 西北逍遥 阅读(136) 评论(0) 推荐(0)
摘要: java 串口通讯 package com.vfsd.test; import java.io.IOException; import java.math.BigInteger; import gnu.io.CommPortIdentifier; import gnu.io.SerialPort; 阅读全文
posted @ 2023-09-20 16:08 西北逍遥 阅读(202) 评论(0) 推荐(0)
摘要: python request请求数据 # -*- coding:utf-8 -*- import requests import json #查询塔吊X数据 def searchTowerXValue(): towerXValue = 0.0 try: # 从服务器请求数据 response = r 阅读全文
posted @ 2023-09-19 08:49 西北逍遥 阅读(49) 评论(0) 推荐(0)
摘要: java获取前一天日期 import java.util.Calendar; public class Main { public static void main(String[] args) { // 获取今天的日期 Calendar today = Calendar.getInstance() 阅读全文
posted @ 2023-09-18 11:57 西北逍遥 阅读(2530) 评论(0) 推荐(0)
摘要: Spring POST 是一种 HTTP 请求方法,用于向服务器发送数据。与 GET 方法不同,POST 方法将数据包含在请求的主体中,而不是 URL 中。 在 Spring 中,可以使用 @PostMapping 注解来创建一个处理 POST 请求的方法。例如: @RestController p 阅读全文
posted @ 2023-09-17 16:08 西北逍遥 阅读(176) 评论(0) 推荐(0)
摘要: 在PyQt中,可以使用matplotlib库来绘制折线图。 import sys from PyQt5.QtWidgets import QApplication, QMainWindow, QVBoxLayout, QWidget from matplotlib.figure import Fig 阅读全文
posted @ 2023-09-16 17:59 西北逍遥 阅读(514) 评论(0) 推荐(0)
摘要: import numpy as np from scipy.signal import argrelextrema def emd(data): """ 经验模式分解(Empirical Mode Decomposition,EMD) """ # 找到极值点 max_points, min_poin 阅读全文
posted @ 2023-09-15 12:00 西北逍遥 阅读(669) 评论(0) 推荐(0)
摘要: 在小程序中,可以使用Date对象来获取当前的年、月和日 const now = new Date(); const year = now.getFullYear(); // 获取当前年份 const month = now.getMonth() + 1; // 获取当前月份,注意月份是从0开始的,因 阅读全文
posted @ 2023-09-14 07:58 西北逍遥 阅读(1424) 评论(0) 推荐(0)
摘要: test2 = [range(1, 101)] print(test2) my_list = list(range(1, 101)) print(my_list) my_list2 = list(range(100, 0,-1)) print(my_list2) my_list3 = [0] * 1 阅读全文
posted @ 2023-09-13 15:36 西北逍遥 阅读(248) 评论(0) 推荐(0)
摘要: opencv resize import cv2 from ccv import ccv2 # 读取图像 image = cv2.imread("example.jpg") # 调整图像大小 resized_image = ccv2.resize(image, 300, 300, ccv2.INTE 阅读全文
posted @ 2023-09-12 16:36 西北逍遥 阅读(52) 评论(0) 推荐(0)
摘要: 当使用Python的requests.post函数时,可以在其中添加异常处理来捕获可能的网络错误或HTTP错误。以下是一个示例代码,演示如何使用try-except语句来处理requests.post可能抛出的异常: import requests url = 'http://cbim.com/up 阅读全文
posted @ 2023-09-11 17:08 西北逍遥 阅读(628) 评论(0) 推荐(0)
摘要: 在PyQt中,可以使用matplotlib库来绘制折线图并设置y轴的最大最小值。 import sys from PyQt5.QtWidgets import QApplication, QMainWindow, QVBoxLayout, QWidget from matplotlib.figure 阅读全文
posted @ 2023-09-10 13:47 西北逍遥 阅读(240) 评论(0) 推荐(0)
摘要: IFC(Industry Foundation Classes)标准是建筑行业信息模型数据交换国际标准,它被广泛用于建筑、设备、系统等的三维模型数据交换。IFC4.3 RC2是该标准的最新版本1。 阅读全文
posted @ 2023-09-09 17:36 西北逍遥 阅读(69) 评论(0) 推荐(0)
摘要: 1、 (base) C:\Users\Administrator> (base) C:\Users\Administrator> (base) C:\Users\Administrator>conda create -n wind_2023 python==3.7 Collecting packag 阅读全文
posted @ 2023-09-08 20:09 西北逍遥 阅读(241) 评论(0) 推荐(0)
摘要: import sys from PyQt5.QtWidgets import QApplication, QMainWindow, QVBoxLayout, QWidget from matplotlib.figure import Figure from matplotlib.backends.b 阅读全文
posted @ 2023-09-07 07:34 西北逍遥 阅读(328) 评论(0) 推荐(0)
摘要: 小程序中格式化JSON数据中的日期 // 假设原始JSON数据为 const originalJson = { name: 'John Doe', birthdate: '1990-01-01' }; // 将日期格式化为标准的ISO 8601格式 const formattedJson = {}; 阅读全文
posted @ 2023-09-06 17:03 西北逍遥 阅读(107) 评论(0) 推荐(0)
摘要: 使用 requests 库可以方便地上传多个文件和其他字段。当使用Python的requests.post函数时,您可以在其中添加异常处理来捕获可能的网络错误或HTTP错误。 import requests url = 'http://cbim.com/upload' files = {'file1 阅读全文
posted @ 2023-09-05 12:53 西北逍遥 阅读(419) 评论(0) 推荐(0)
摘要: python 计算两个日期之间的时间差,并将其转换为秒数 from datetime import datetime, timedelta # 创建两个日期对象 date1 = datetime(2023, 7, 2) date2 = datetime(2023, 7, 4) # 计算时间差,并转换 阅读全文
posted @ 2023-09-04 17:45 西北逍遥 阅读(839) 评论(0) 推荐(0)
摘要: 使用synchronized关键字来同步多个线程操作同一个文件 import java.io.FileWriter; import java.io.IOException; public class FileSyncExample { private static Object file = new 阅读全文
posted @ 2023-09-03 09:07 西北逍遥 阅读(70) 评论(0) 推荐(0)
摘要: 要使用Java和OpenCV读取RTSP流,您需要使用JavaCV库。JavaCV是一个Java绑定库,它提供了与OpenCV的接口,使您可以在Java中方便地使用OpenCV的功能。以下是一个简单的Java程序,它使用JavaCV库从RTSP流中读取视频帧: import org.bytedeco 阅读全文
posted @ 2023-09-02 13:11 西北逍遥 阅读(909) 评论(0) 推荐(0)
摘要: 微信小程序下拉重新请求数据 Page({ data: { // 页面数据 }, onPullDownRefresh: function () { // 请求数据 this.getData() }, getData: function () { // 发送网络请求获取数据 // ... // 请求成功 阅读全文
posted @ 2023-09-01 13:55 西北逍遥 阅读(83) 评论(0) 推荐(0)
摘要: python post上传文件 import requests import json url = 'http://cnbim.com/upload' file_path = 'path/1/2/file.jpg' data = { 'file': open(file_path, 'rb'), 'i 阅读全文
posted @ 2023-08-31 08:32 西北逍遥 阅读(167) 评论(0) 推荐(0)
摘要: public Mat erodeMat(Mat src) { // 读取图像 //Mat src = Imgcodecs.imread("test.pgm"); // 定义结构元素 Mat kernel = new Mat(31, 31, CvType.CV_8UC1, new Scalar(1)) 阅读全文
posted @ 2023-08-30 08:10 西北逍遥 阅读(26) 评论(0) 推荐(0)
摘要: unity3d BestHTTP #region /// <summary> /// 调用http接口 /// </summary> private void StartRequestData() {// BestHttp插件, 首先实例化一个HTTPRequest, 设置为Post形式, 并配置回 阅读全文
posted @ 2023-08-29 21:04 西北逍遥 阅读(584) 评论(0) 推荐(0)
摘要: python request session try: # verify参数来解决ssl报错问题 request_result = self.request_sess.post(url,data,verify=False) print(request_result) except Exception 阅读全文
posted @ 2023-08-28 18:57 西北逍遥 阅读(61) 评论(0) 推荐(0)
摘要: IfcObjective 实体定义 IfcObjective捕获基于目标的约束的定性信息。 IfcObjective是IfcConstraint的一个子类型,可以通过IfcControlExtension架构中的IfcRelAssociatesConstraint关系与IfcRoot的任何子类型相关 阅读全文
posted @ 2023-08-27 19:09 西北逍遥 阅读(37) 评论(0) 推荐(0)
摘要: IfcReference 实体定义 此实体用于引用实例上属性的值。它可以指标量属性的值,也可以指基于集合的属性中的值。引用的属性可以是直接值、对象引用、集合、反向对象引用和反向集合。引用可以被链接以形成对象属性引用的路径。 Attribute definitions #AttributeTypeCa 阅读全文
posted @ 2023-08-26 16:06 西北逍遥 阅读(38) 评论(0) 推荐(0)
摘要: IfcResourceConstraintRelationship 实体定义 IfcResourceConstraintRelationship是一种关系实体,它使约束能够与一个或多个资源级对象相关。 IfcResourceConstraintRelationship允许将约束的规范应用于许多实体类 阅读全文
posted @ 2023-08-25 08:13 西北逍遥 阅读(34) 评论(0) 推荐(0)
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 96 下一页