2024年4月24日

交点法公路计算的一些相关方法函数(Python)

摘要: 1 # 弧度归一化 2 @staticmethod 3 def normalize_radian(radian): 4 return radian % tau 5 6 # 获取坐标差 7 @staticmethod 8 def get_coord_diff(start_x, start_y, end 阅读全文

posted @ 2024-04-24 20:47 Ice94 阅读(78) 评论(0) 推荐(0)

2023年9月22日

Excel-根据身份证号码计算该人员当前年龄

摘要: 工程项目上用人对年龄有比较明确的限制,mid()提取年份再手动输入当前年份计算无法自动更新,有些年龄接近限制的人员容易出现失误,固采用today()函数,每次打开表格自动获取当前日期,再进行运算,获得较为精确的结果,公式如下: 1 =DATEDIF(DATE(MID(C17,7,4),MID(C17 阅读全文

posted @ 2023-09-22 07:42 Ice94 阅读(256) 评论(0) 推荐(0)

2022年1月9日

国内Linux Server添加自动更新Github解析

摘要: 1.先写脚本:gethosts,给予权限0755. #!/bin/bash sed -i "/# GitHub Host Start/Q" /etc/hosts && curl https://gitee.com/ineo6/hosts/raw/master/hosts >> /etc/hosts 阅读全文

posted @ 2022-01-09 18:24 Ice94 阅读(216) 评论(0) 推荐(0)

2022年1月5日

LinuxGSM部署游戏服务器遇到验证码问题

摘要: Installing Killing Floor Server [ START ] Installing kfserver: SteamCMD # 直接在他这个光标里面输入验证码,直接回车. 阅读全文

posted @ 2022-01-05 18:41 Ice94 阅读(54) 评论(0) 推荐(0)

2021年12月27日

CentOS上部署Nginx作为个人文件服务器

摘要: 开机进入服务器: yum -y update # 更新 reboot # 重启 部署Nginx: yum -y install nginx # 安装nginx systemctl enable nginx # 设置自启动 systemctl start nginx # 启动nginx # 这个时候我 阅读全文

posted @ 2021-12-27 22:40 Ice94 阅读(162) 评论(0) 推荐(0)

2021年9月17日

圣天诺加密狗驱动安装失败解决办法

摘要: 在圣天诺官网下载命令行安装工具(或者利用原安装工具),在命令行中输入如下指令: 1 haspdinst.exe -kp -r -fr -v -purge # 关闭进程清理残留文件 2 haspdinst.exe -i # 安装驱动 阅读全文

posted @ 2021-09-17 18:31 Ice94 阅读(1603) 评论(0) 推荐(0)

2021年8月10日

度分秒转弧度及弧度转度分秒

摘要: 2023/05/30 归化角度为0-360°,弧度0-2*pi 直接上代码: 1 from math import radians, degrees, modf, pi 2 3 # dms2rad: 度分秒转弧度 4 def dms2rad(self, dms): 5 # 使用 modf 函数将度分 阅读全文

posted @ 2021-08-10 15:05 Ice94 阅读(1500) 评论(0) 推荐(0)

导航