摘要: 方案1:创建任务计划--启动软件取消UAC权限询问弹窗 1.1 打开任务计划 右键“我的电脑”--“管理”,打开任务计划,如图所示 1.2 创建任务计划 1.2.1 常规参数设置 1.2.2 触发器设置 1.2.3 操作设置 最后按确定即可完成任务计划创建,至此电脑重启登陆后,软件都会自动启动 方案 阅读全文
posted @ 2025-02-13 15:41 qiutian-hao 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 1.安装uvicorn和FastAPI pip3 install uvicorn pip3 install FastAPI 2.python代码实现 import uvicorn from fastapi import FastAPI app = FastAPI() @app.post("/Show 阅读全文
posted @ 2025-01-10 10:46 qiutian-hao 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 1.Python实现 1.1、Add.py类实现加法计算 def add(x,y): return x+y 1.2、Test.py类实现调用Add.py加法计算 import Add def ShowNum(x,y): print('和为:%d' % Add.add(x,y)) return Add 阅读全文
posted @ 2025-01-08 11:03 qiutian-hao 阅读(84) 评论(0) 推荐(0) 编辑
摘要: private void TestPython() { try { //python环境路径 string pathToVirtualEnv = @"H:\ProgramData\anaconda3\envs\python39"; Environment.SetEnvironmentVariable 阅读全文
posted @ 2025-01-06 15:18 qiutian-hao 阅读(18) 评论(0) 推荐(0) 编辑
摘要: public static DataTable ReadDataTable(string filePath) { DataTable dt = new DataTable(); try { System.Text.Encoding encoding = Encoding.Default;//GetT 阅读全文
posted @ 2024-12-10 16:49 qiutian-hao 阅读(30) 评论(0) 推荐(0) 编辑
摘要: public static DataTable ReadDataTable(string filePath) { DataTable dt = new DataTable(); StreamReader sR = null; try { if (File.Exists(filePath)) { sR 阅读全文
posted @ 2024-12-10 16:48 qiutian-hao 阅读(36) 评论(0) 推荐(0) 编辑
摘要: Dictionary<int, double> keyValuePairs = new Dictionary<int, double>(); keyValuePairs.Add(1, 10); keyValuePairs.Add(3, 33); keyValuePairs.Add(2, 13); / 阅读全文
posted @ 2024-12-10 16:48 qiutian-hao 阅读(13) 评论(0) 推荐(0) 编辑
摘要: // 使用DirectoryInfo类 DirectoryInfo directory = new DirectoryInfo(path); // 获取目录下的所有文件 FileInfo[] files = directory.GetFiles(); 阅读全文
posted @ 2024-12-10 16:47 qiutian-hao 阅读(6) 评论(0) 推荐(0) 编辑
摘要: using System; using System.IO.Ports; using System.Linq; using System.Text; using System.Threading; namespace DAL { public class AsySerialDal { private 阅读全文
posted @ 2024-10-15 10:54 qiutian-hao 阅读(55) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// HTTP POST请求 /// </summary> /// <param name="url">请求地址</param> /// <param name="value">参数</param> /// <param name="timeout">超时时间,默认5秒 阅读全文
posted @ 2024-09-30 14:40 qiutian-hao 阅读(123) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示