balances [msg.sender] = 100;. 取得mapping 值 uint balance = balances[msg.sender]. msg.sender 是address 型別. mapping 型別不支援iterable,但可以自己實作它。
確定! 回上一頁