假设我有一个列表,其中包含另外两个包含一个字符串的列表,
foo = [['12345'],['abcdefg']]
如何使用索引位置值打印出"b"?我知道我可以写清单中的每个项目,比如
['a','b','c','d']
但我想知道是否可以只使用一个字符串.
python string variables list data-structures
data-structures ×1
list ×1
python ×1
string ×1
variables ×1