我有一个相当大的元组,其中包含:
[('and', 44023), ('cx', 37711), ('is', 36777) .... ]
我只想提取由单引号分隔的第一个字符串,因此上面元组的输出将是:
and cx is
我该如何编码(在某种程度上内置了可扩展性)?
python string parsing tuples
parsing ×1
python ×1
string ×1
tuples ×1