We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
题目一 题目二 位于q007和q014的这两个题目问题是一样的,但是答案不一样,q007的答案更为准确,将题目二的代码改成这样就可以正确运行:
type Student struct { Age int } func main() { kv := map[string]*Student{"menglu": {Age: 21}} kv["menglu"].Age = 22 s := []Student{{Age: 21}} s[0].Age = 22 fmt.Println(kv, s) }
我在stackoverflow上找到了和q007类似的解答:https://stackoverflow.com/a/32751792/4737579
The text was updated successfully, but these errors were encountered:
这个说法貌似更能接受 @epolar
Sorry, something went wrong.
No branches or pull requests
题目一
题目二
位于q007和q014的这两个题目问题是一样的,但是答案不一样,q007的答案更为准确,将题目二的代码改成这样就可以正确运行:
我在stackoverflow上找到了和q007类似的解答:https://stackoverflow.com/a/32751792/4737579
The text was updated successfully, but these errors were encountered: