Dictionary update sequence element #0 has length 1; 2 is required? what is the reason behind this?

后端 未结 0 1123
臣服心动
臣服心动 2020-12-20 08:21

n = 1

d = dict(input().split() for _ in range(n))

print (type(d))


a = "a 95"

s = dict(a.split())

print(type(s))

相关标签:
回答
  • 消灭零回复
提交回复
热议问题