Hexo
Hexo
Untitled
Created
2025-08-01
|
Updated
2025-08-02
|
Post Views:
KNN
K近邻算法
Author:
Ricky Shao
Link:
http://example.com/2025/08/01/KNN/
Copyright Notice:
All articles on this blog are licensed under
CC BY-NC-SA 4.0
unless otherwise stated.
Previous
Rust
Rust学习笔记 在2025年的暑假,打算学习Rust这门编程语言,就是闲的没事做,下面是我的一些闲笔总结 [快速入门 - 程序设计训练(Rust)]:清华大学Rust程序设计主页 [寻找牛刀,以便小试 - Rust语言圣经(Rust Course)]:Rust圣经 基本语法1234fn main(){ let a: i32 = 5; let mut a = 10;} 首先就是Rust语言中的变量赋值:使用let语句,后加变量名,后加变量类型,最后赋值。可以前加mut关键字修饰这个变量是可变的,否则修改不可改变变量的值将引起编译错误。 Rust中的表达式 1234567891011fn main() { let a:i32 = 5; let flag:bool = check(a); print!("{}", flag);}fn check(number:i32) -> bool{ number % 2 == 0 //return...
Ricky Shao
Articles
3
Tags
0
Categories
0
Follow Me
Announcement
南京大学匡亚明学院计算机方向大三在读
Contents
1.
KNN
Recent Posts
Untitled
2025-08-01
Rust
2025-07-03
Hello World
2025-06-29