2,619
次編輯
Tankianting(討論 | 貢獻) (→函數) |
Tankianting(討論 | 貢獻) |
||
行 83: | 行 83: | ||
# 獲得子字串:<code>a = a[..1].to_string();</code> | # 獲得子字串:<code>a = a[..1].to_string();</code> | ||
== Gtk4 == | ==食譜 (Cookbook)== | ||
===子目錄的item用for遍歷,轉成字串=== | |||
<pre> | |||
let corpus_CSV_paths = fs::read_dir("./corpus").unwrap(); | |||
for path in corpus_CSV_paths { | |||
let path_string = format!("{:?}", path.unwrap().path()); | |||
} | |||
</pre> | |||
==函式庫== | |||
=== Gtk4 === | |||
# [[Grid於Rust的Gtk4 binding]] | # [[Grid於Rust的Gtk4 binding]] | ||
[[category:資訊]] | [[category:資訊]] |