04 2023 档案

摘要:Qt执行ping命令 #include <QCoreApplication> #include <QDebug> #include <QProcess> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); QStrin 阅读全文
posted @ 2023-04-30 19:42 西北逍遥 阅读(612) 评论(0) 推荐(0) 编辑
摘要:在C++中,使用new关键字来创建对象时,与不使用new关键字来创建对象时,会产生以下几个区别: 内存管理:使用new关键字来创建对象时,由编译器来决定分配内存的方式,这样可以更有效地利用内存资源。而不使用new关键字来创建对象时,则需要手动分配内存,可能会浪费一些内存资源。 对象生命周期:使用ne 阅读全文
posted @ 2023-04-29 15:46 西北逍遥 阅读(519) 评论(0) 推荐(0) 编辑
摘要:点云数据旋转 #include <iostream> #include <pcl/io/pcd_io.h> #include <pcl/point_types.h> #include <pcl/filters/passthrough.h> #include <pcl/visualization/pc 阅读全文
posted @ 2023-04-28 20:41 西北逍遥 阅读(78) 评论(0) 推荐(0) 编辑
摘要:在C++中,inline关键字用于建议编译器将函数内联到调用它的地方。内联函数是一种优化技术,可以减少函数调用的开销。当一个函数被声明为内联时,编译器会尝试将函数的代码直接嵌入到每个调用该函数的地方,从而避免了函数调用时产生的额外开销,如保存寄存器、设置栈帧等。 需要注意的是,inline关键字仅仅 阅读全文
posted @ 2023-04-27 16:04 西北逍遥 阅读(41) 评论(0) 推荐(0) 编辑
摘要:#include <QtWidgets/QApplication> #include <QtWidgets/QGraphicsScene> #include <QtWidgets/QGraphicsView> #include <QtCore/QPointF> #include <QtCore/QD 阅读全文
posted @ 2023-04-26 19:30 西北逍遥 阅读(17) 评论(0) 推荐(0) 编辑
摘要:计算机力学仿真的难点主要在以下几个方面: 建立准确的几何模型:力学仿真模型需要建立准确的几何模型,这包括材质、网格、约束等因素。建立准确的几何模型需要有扎实的数学和物理基础,以及丰富的实际经验。 处理复杂的物理问题:力学仿真中经常会遇到各种复杂的物理问题,如摩擦、变形、应力应变、流体力学等。解决这些 阅读全文
posted @ 2023-04-25 18:15 西北逍遥 阅读(163) 评论(0) 推荐(0) 编辑
摘要:python三角网格划分示例 import numpy as np import turtle # 输入三角形的边长 length = float(input("Enter the length of the triangle: ")) # 计算最短边、最长边和三角形个数 short_side = 阅读全文
posted @ 2023-04-24 16:06 西北逍遥 阅读(184) 评论(0) 推荐(0) 编辑
摘要:PIL resize from PIL import Image # Open the image img = Image.open("20230222100736979.jpg") # Resize the image img = img.resize((img.width*2, img.heig 阅读全文
posted @ 2023-04-23 21:06 西北逍遥 阅读(16) 评论(0) 推荐(0) 编辑
摘要:python opencv Sharpened import cv2 import numpy as np # Load the image img = cv2.imread('20230222100736979.jpg') # Define the sharpening kernel kernel 阅读全文
posted @ 2023-04-22 15:24 西北逍遥 阅读(30) 评论(0) 推荐(0) 编辑
摘要:阿里云ECS linux操作系统 tomcat域名配置SSL 启用域名https 1、解压已保存到本地的Tomcat证书文件。 解压后您将看到文件夹中有以下文件: 证书文件(domain_name.pfx) 密码文件(pfx-password.txt) 说明 本文中证书名称以domain_name为 阅读全文
posted @ 2023-04-21 19:59 西北逍遥 阅读(139) 评论(0) 推荐(0) 编辑
摘要:微信小程序九宫格布局css .grid-list{ display: flex; flex-wrap: wrap; border-left: 1rpx solid #efefef; border-top: 1rpx solid #efefef; } .grid-item{ width:33.33%; 阅读全文
posted @ 2023-04-20 07:53 西北逍遥 阅读(225) 评论(0) 推荐(0) 编辑
摘要:小程序 swiper swiper-item <swiper class="banner_swiper" indicator-dots="true" indicator-color="white" indicator-active-color="gray" autoplay="true" inter 阅读全文
posted @ 2023-04-19 10:16 西北逍遥 阅读(48) 评论(0) 推荐(0) 编辑
摘要:IfcActorResource是一个IFC(Industry Foundation Classes)定义的术语,用于描述在工业领域中使用的资源。它是IFC标准的一部分,用于定义资源之间的关系和约束。 IfcActorResource可以是一个物理对象(如一个设备、机器或工具),也可以是一个逻辑对象 阅读全文
posted @ 2023-04-18 17:51 西北逍遥 阅读(12) 评论(0) 推荐(0) 编辑
摘要:python 调用java import subprocess # Replace "path/to/java/program" with the actual path to your Java program java_program_path = "path/to/java/program" 阅读全文
posted @ 2023-04-17 07:22 西北逍遥 阅读(102) 评论(0) 推荐(0) 编辑
摘要:import cv2 import numpy as np from matplotlib import pyplot as plt img = cv2.imread('20230222100736979.jpg', 0) hist = cv2.calcHist([img], [0], None, 阅读全文
posted @ 2023-04-16 12:51 西北逍遥 阅读(7) 评论(0) 推荐(0) 编辑
摘要:python opencv 分割像素通道 import cv2 import numpy as np # Load the image img = cv2.imread('path/to/image.jpg') # Split the image into its channels b, g, r 阅读全文
posted @ 2023-04-15 15:14 西北逍遥 阅读(17) 评论(0) 推荐(0) 编辑
摘要:python 操作csv 写csv import csv with open('path/to/file.csv', 'w', newline='') as csvfile: writer = csv.writer(csvfile, delimiter=',', quotechar='"', quo 阅读全文
posted @ 2023-04-14 08:49 西北逍遥 阅读(27) 评论(0) 推荐(0) 编辑
摘要:python操作excel pip install openpyxl 写: import openpyxl # Load the workbook workbook = openpyxl.load_workbook('path/to/file.xlsx') # Select the workshee 阅读全文
posted @ 2023-04-13 22:54 西北逍遥 阅读(21) 评论(0) 推荐(0) 编辑
摘要:java jsoup解析html ol li import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; import org.jsoup.select.Elements; publ 阅读全文
posted @ 2023-04-12 11:12 西北逍遥 阅读(39) 评论(0) 推荐(0) 编辑
摘要:python opencv putText import cv2 # Load image img = cv2.imread("image.jpg") # Define text to draw text = "Hello, World!" # Define position to draw tex 阅读全文
posted @ 2023-04-11 19:32 西北逍遥 阅读(207) 评论(0) 推荐(0) 编辑
摘要:python播放视频 pip install pygame import pygame pygame.init() # Set the dimensions of the window screen = pygame.display.set_mode((640, 480)) # Load the v 阅读全文
posted @ 2023-04-10 09:37 西北逍遥 阅读(63) 评论(0) 推荐(0) 编辑
摘要:python time测试 import time def timer(seconds): start_time = time.time() while True: elapsed_time = time.time() - start_time if elapsed_time >= seconds: 阅读全文
posted @ 2023-04-09 19:11 西北逍遥 阅读(27) 评论(0) 推荐(0) 编辑
摘要:python opencv inRange import cv2 import numpy as np # Load the image img = cv2.imread('20220320151016_144_c.jpg') hsv = cv2.cvtColor(img,cv2.COLOR_BGR 阅读全文
posted @ 2023-04-08 00:36 西北逍遥 阅读(74) 评论(0) 推荐(0) 编辑
摘要:python opencv line import cv2 # Load an image img = cv2.imread("image1.jpg") # Draw a red line from (0, 0) to (100, 100) with a thickness of 5 pixels 阅读全文
posted @ 2023-04-07 21:03 西北逍遥 阅读(9) 评论(0) 推荐(0) 编辑
摘要:python datetime日期格式化 from datetime import datetime currentDateTime = datetime.now() print(currentDateTime.strftime("%Y-%m-%d %H:%M:%S")) ############# 阅读全文
posted @ 2023-04-06 22:16 西北逍遥 阅读(162) 评论(0) 推荐(0) 编辑
摘要:QHBoxLayout清空子控件 layout = QHBoxLayout() widget1 = QLabel("Widget 1") widget2 = QLabel("Widget 2") widget3 = QLabel("Widget 3") layout.addWidget(widget 阅读全文
posted @ 2023-04-05 22:50 西北逍遥 阅读(478) 评论(0) 推荐(0) 编辑
摘要:python判断是否是零时 from datetime import datetime now = datetime.now() if now.hour == 0 and now.minute == 0 and now.second == 0: print("It's midnight!") ### 阅读全文
posted @ 2023-04-04 21:13 西北逍遥 阅读(78) 评论(0) 推荐(0) 编辑
摘要:QLabel 显示opencv Mat import cv2 from PyQt5.QtGui import QImage, QPixmap from PyQt5.QtWidgets import QLabel label = QLabel() # Load the image using Open 阅读全文
posted @ 2023-04-03 13:02 西北逍遥 阅读(98) 评论(0) 推荐(0) 编辑
摘要:QDateTime计算时间差 from PyQt5.QtCore import QDateTime # Create two QDateTime objects dt1 = QDateTime.currentDateTime() dt2 = QDateTime(2022, 1, 1, 0, 0) # 阅读全文
posted @ 2023-04-02 17:55 西北逍遥 阅读(253) 评论(0) 推荐(0) 编辑
摘要:python pygame播放音频文件 pip install pygame import pygame # Initialize pygame pygame.init() # Load the MP3 file pygame.mixer.music.load("1.mp3") # Play the 阅读全文
posted @ 2023-04-01 19:14 西北逍遥 阅读(57) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示