摘要: use std::any::Any; fn main() { fn is_string(s: &dyn Any) { if s.is::<String>() { println!("It's a string!"); } else { println!("Not a string!"); } } i 阅读全文
posted @ 2025-09-10 22:11 杭州皮卡丘 阅读(8) 评论(0) 推荐(0)
摘要: Go语言入门教程: https://c.biancheng.net/golang/ Go语言的基本类型有: bool string int、int8、int16、int32、int64 uint、uint8、uint16、uint32、uint64、uintptr byte // uint8 的别名 阅读全文
posted @ 2023-12-12 21:09 杭州皮卡丘 阅读(17) 评论(0) 推荐(0)
摘要: { "workbench.startupEditor": "none", "workbench.iconTheme": "vscode-icons", "workbench.colorTheme": "Dracula", "window.title": "${rootName}${separator 阅读全文
posted @ 2023-12-12 21:05 杭州皮卡丘 阅读(65) 评论(0) 推荐(0)
摘要: set nocompatible syntax on set number set cursorline set ruler set shiftwidth=2 set softtabstop=2 set tabstop=2 set nobackup set autochdir filetype pl 阅读全文
posted @ 2023-07-13 21:28 杭州皮卡丘 阅读(11) 评论(0) 推荐(0)