Home > other >  Weird extract database data to generate a list format
Weird extract database data to generate a list format

Time:09-18

Extract the database date, to generate the list, behind why each element will automatically add a comma? Cause the failure of the late data visualization

CodePudding user response:

Looking at quotes' and comma, are not normal

CodePudding user response:

 
S=[(' 2019 '), (' 2020 ',), (' 2021 '),]
For s1 in s:
Print (list (s1))


Should not affect use

CodePudding user response:

Add a comma, table name this is a tuple
  • Related