📅  最后修改于: 2022-03-11 14:49:25.659000             🧑  作者: Mango
You can use a Structure
struct Data {
randomInfo: String
}
let mut Data {
randomInfo: "This is a structure"
}
/* The mut keyword defines whether or not you can mutate (change)
the variable, so if you don't want ot be able to change the data then
don't use the mut keyword. Like so:
*/
let Data {
randomInfo: "This is a structure"
}