[' "further update is anticipated" ', '" reprocessed "', '(65.0812475944934, 77.7497163153283, 93.4077589098503, 78.2279065705557)', '(39.8413328799098, 50.0752988745116, 49.9953294631081, 39.7845494675869)', '" 2009-01-01 "']
How to get respectively 65.0812475944934, 77.7497163153283, 93.4077589098503, 78.2279065705557
39.8413328799098, 50.0752988745116, 49.9953294631081, 39.7845494675869 and the 2009-01-01
Thank you for your attention!
CodePudding user response:
As a two-dimensional array to read canlist1=[' c ', 'b', (123, 234, 345), (567, 678, 789), '2009-01-01')
Print (list1 [2], [0] list1 [2], [1] list1 [4])
CodePudding user response:
I'm sorry, didn't watch carefully,Use the following
list1=[' "further update is anticipated" ', '" reprocessed "', '(65.0812475944934, 77.7497163153283, 93.4077589098503, 78.2279065705557)', '(39.8413328799098, 50.0752988745116, 49.9953294631081, 39.7845494675869)', '" 2009-01-01 "]
A="'. Join ([x for x list1 in [2] the if x!='(' and x!=') and x!=']). The split (', ')
Print (a [0], a [1])
B="'. Join ([x for x list1 in [4] if x!=' '])
"Print (b)