map是解包的意思,[a,b]输入的是一个列表,正确写法a,b = list(map(int,string.split()))这样就是它expected 2了
点赞 评论

相关推荐

牛客网
牛客网在线编程
牛客网题解
牛客企业服务