我正在嘗試使用以下字符串從字符串創建一個全局字節數組:var operators = []byte {"+-*/%"}但是,我收到了錯誤cannot use string("+-*/") (type untyped string) as type byte in array or slice literal我在這里做錯了什么?
- 2 回答
- 0 關注
- 143 瀏覽
添加回答
舉報
0/150
提交
取消