上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 94 下一页
摘要: python request请求数据 # -*- coding:utf-8 -*- import requests import json #查询塔吊X数据 def searchTowerXValue(): towerXValue = 0.0 try: # 从服务器请求数据 response = r 阅读全文
posted @ 2023-09-19 08:49 西北逍遥 阅读(21) 评论(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 西北逍遥 阅读(2234) 评论(0) 推荐(0) 编辑
摘要: Spring POST 是一种 HTTP 请求方法,用于向服务器发送数据。与 GET 方法不同,POST 方法将数据包含在请求的主体中,而不是 URL 中。 在 Spring 中,可以使用 @PostMapping 注解来创建一个处理 POST 请求的方法。例如: @RestController p 阅读全文
posted @ 2023-09-17 16:08 西北逍遥 阅读(85) 评论(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 西北逍遥 阅读(297) 评论(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 西北逍遥 阅读(335) 评论(0) 推荐(0) 编辑
摘要: 在小程序中,可以使用Date对象来获取当前的年、月和日 const now = new Date(); const year = now.getFullYear(); // 获取当前年份 const month = now.getMonth() + 1; // 获取当前月份,注意月份是从0开始的,因 阅读全文
posted @ 2023-09-14 07:58 西北逍遥 阅读(944) 评论(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 西北逍遥 阅读(112) 评论(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 西北逍遥 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 当使用Python的requests.post函数时,可以在其中添加异常处理来捕获可能的网络错误或HTTP错误。以下是一个示例代码,演示如何使用try-except语句来处理requests.post可能抛出的异常: import requests url = 'http://cbim.com/up 阅读全文
posted @ 2023-09-11 17:08 西北逍遥 阅读(336) 评论(0) 推荐(0) 编辑
摘要: 在PyQt中,可以使用matplotlib库来绘制折线图并设置y轴的最大最小值。 import sys from PyQt5.QtWidgets import QApplication, QMainWindow, QVBoxLayout, QWidget from matplotlib.figure 阅读全文
posted @ 2023-09-10 13:47 西北逍遥 阅读(102) 评论(0) 推荐(0) 编辑
摘要: IFC(Industry Foundation Classes)标准是建筑行业信息模型数据交换国际标准,它被广泛用于建筑、设备、系统等的三维模型数据交换。IFC4.3 RC2是该标准的最新版本1。 阅读全文
posted @ 2023-09-09 17:36 西北逍遥 阅读(20) 评论(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 西北逍遥 阅读(98) 评论(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 西北逍遥 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 小程序中格式化JSON数据中的日期 // 假设原始JSON数据为 const originalJson = { name: 'John Doe', birthdate: '1990-01-01' }; // 将日期格式化为标准的ISO 8601格式 const formattedJson = {}; 阅读全文
posted @ 2023-09-06 17:03 西北逍遥 阅读(73) 评论(0) 推荐(0) 编辑
摘要: 使用 requests 库可以方便地上传多个文件和其他字段。当使用Python的requests.post函数时,您可以在其中添加异常处理来捕获可能的网络错误或HTTP错误。 import requests url = 'http://cbim.com/upload' files = {'file1 阅读全文
posted @ 2023-09-05 12:53 西北逍遥 阅读(285) 评论(0) 推荐(0) 编辑
摘要: python 计算两个日期之间的时间差,并将其转换为秒数 from datetime import datetime, timedelta # 创建两个日期对象 date1 = datetime(2023, 7, 2) date2 = datetime(2023, 7, 4) # 计算时间差,并转换 阅读全文
posted @ 2023-09-04 17:45 西北逍遥 阅读(498) 评论(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 西北逍遥 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 要使用Java和OpenCV读取RTSP流,您需要使用JavaCV库。JavaCV是一个Java绑定库,它提供了与OpenCV的接口,使您可以在Java中方便地使用OpenCV的功能。以下是一个简单的Java程序,它使用JavaCV库从RTSP流中读取视频帧: import org.bytedeco 阅读全文
posted @ 2023-09-02 13:11 西北逍遥 阅读(565) 评论(0) 推荐(0) 编辑
摘要: 微信小程序下拉重新请求数据 Page({ data: { // 页面数据 }, onPullDownRefresh: function () { // 请求数据 this.getData() }, getData: function () { // 发送网络请求获取数据 // ... // 请求成功 阅读全文
posted @ 2023-09-01 13:55 西北逍遥 阅读(40) 评论(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 西北逍遥 阅读(130) 评论(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 西北逍遥 阅读(6) 评论(0) 推荐(0) 编辑
摘要: unity3d BestHTTP #region /// <summary> /// 调用http接口 /// </summary> private void StartRequestData() {// BestHttp插件, 首先实例化一个HTTPRequest, 设置为Post形式, 并配置回 阅读全文
posted @ 2023-08-29 21:04 西北逍遥 阅读(345) 评论(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 西北逍遥 阅读(35) 评论(0) 推荐(0) 编辑
摘要: IfcObjective 实体定义 IfcObjective捕获基于目标的约束的定性信息。 IfcObjective是IfcConstraint的一个子类型,可以通过IfcControlExtension架构中的IfcRelAssociatesConstraint关系与IfcRoot的任何子类型相关 阅读全文
posted @ 2023-08-27 19:09 西北逍遥 阅读(10) 评论(0) 推荐(0) 编辑
摘要: IfcReference 实体定义 此实体用于引用实例上属性的值。它可以指标量属性的值,也可以指基于集合的属性中的值。引用的属性可以是直接值、对象引用、集合、反向对象引用和反向集合。引用可以被链接以形成对象属性引用的路径。 Attribute definitions #AttributeTypeCa 阅读全文
posted @ 2023-08-26 16:06 西北逍遥 阅读(12) 评论(0) 推荐(0) 编辑
摘要: IfcResourceConstraintRelationship 实体定义 IfcResourceConstraintRelationship是一种关系实体,它使约束能够与一个或多个资源级对象相关。 IfcResourceConstraintRelationship允许将约束的规范应用于许多实体类 阅读全文
posted @ 2023-08-25 08:13 西北逍遥 阅读(7) 评论(0) 推荐(0) 编辑
摘要: IfcArithmeticOperatorEnum 类型定义 IfcAlgorithmicOperatorEnum指定关系所隐含的算术运算的形式。 IFC2x2中的新枚举。 Enumeration definition ConstantDescription ADD DIVIDE MULTIPLY 阅读全文
posted @ 2023-08-24 21:11 西北逍遥 阅读(4) 评论(0) 推荐(0) 编辑
摘要: IfcAppliedValueSelect 类型定义 IfcAppliedValueSelect定义要在公式中计算的值。 类型使用如下: IfcValue:使用项目默认单位的常数值。 IfcMeasureWithUnit:使用指定单位的常数值。 IfcReference:对象属性上引用的值。 对于成 阅读全文
posted @ 2023-08-23 19:13 西北逍遥 阅读(6) 评论(0) 推荐(0) 编辑
摘要: IfcAppliedValue 实体定义 此实体捕获由公式驱动的值,以及其他限定条件,包括单位基础、有效日期范围和分类。 IfcAppliedValue的范围由AppliedValue属性确定,该属性可以通过IfcApplizedValueSelect类型定义为IfcMeasureWithUnit或 阅读全文
posted @ 2023-08-22 13:02 西北逍遥 阅读(9) 评论(0) 推荐(0) 编辑
摘要: IfcCostValue 实体定义 IfcCostValue是一个金额或影响金额的值。 IfcCostValue的每个实例也可能有一个类别。可以识别出许多可能类型的成本价值。虽然人们对可能分配给不同类型成本的名称的含义有着广泛的理解,但对成本类型的命名没有通用标准,也没有任何广义的分类。 以下定义了 阅读全文
posted @ 2023-08-21 09:38 西北逍遥 阅读(8) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 94 下一页