Set is also sequence type object like lists, strings. Why we can't subscript set object?

前端 未结 0 1314
忘掉有多难
忘掉有多难 2021-01-27 18:14
a = {\'foo\', \'bar\', \'hello\', \'world\',}
x = \'foo bar hello world  \'
y = [\'foo\', \'bar\', \'hello\', \'world\']

In [38]: a[0]

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