一json
包 encoding/json
func (this struct_name) MarshalJSON() ([]byte, error) {
處理邏輯
return json.Marshal(i)
}
一json
包 encoding/json
func (this struct_name) MarshalJSON() ([]byte, error) {
處理邏輯
return json.Marshal(i)
}
def ADD(a): print(3,a,hex(id(a))) a.remove(2) print(3,a,hex(id(a))) a=a.append(10)