12 2023 档案
argv 和 input() 的区别,运行时在命令行输入参数 or 运行后用键盘输入参数
摘要:What’s the difference between argv and input() ? The difference has to do with where the user is required to give input. If they give your script inpu 阅读全文
posted @ 2023-12-27 17:10 中年二班 阅读(29) 评论(0) 推荐(0)
script, first, second, third = argv
摘要:from sys import argv # 从Python的标准库之一sys模块库中引入argv模块到自己的脚本中 # read the WYSS section for how to run this script, first, second, third = argv # 解包argv,并依 阅读全文
posted @ 2023-12-27 15:36 中年二班 阅读(78) 评论(0) 推荐(0)
round()函数:4舍6入5成双
摘要:round(0.4)=0round(0.5)=0round(0.6)=1round(1.5)=2round(2.5)=2 这种方法叫 “四舍 六入 五成双” ,是为了避免在大量数据统计时舍入误差引起整体的偏移. 阅读全文
posted @ 2023-12-25 14:27 中年二班 阅读(319) 评论(0) 推荐(0)
Powershell 中的 mv 命令源路径一定要用 ~ 才不会报错,原因未知
摘要:移动 test.txt 文件到指定目录中 源目录一定要用 ~ ,否则报错,原因未知。 ~ 代表 C:\Users\lenovo lenovo 是计算机名称 PS C:\Users\lenovo\test> mv ~\test\test.txt c:\Users\lenovo PS C:\Users\ 阅读全文
posted @ 2023-12-20 16:39 中年二班 阅读(160) 评论(0) 推荐(0)
突发奇想入一下机器学习的坑,STEP 1,想卒
摘要:检索机器学习入门,书籍推荐 《统计学习方法》李航 著 《机器学习》西瓜书 周志华 著 《Elements of Statistical Learning》(ESL), 《Machine Learning:A Probabilistic Perspective》(MLAPP) 这两本书可以是被奉为机器 阅读全文
posted @ 2023-12-19 14:30 中年二班 阅读(33) 评论(0) 推荐(0)