How to convert strings into integers in Python?

后端 未结 15 1925
自闭症患者
自闭症患者 2020-11-22 01:33

I have a tuple of tuples from a MySQL query like this:

T1 = ((\'13\', \'17\', \'18\', \'21\', \'32\'),
      (\'07\', \'11\', \'13\', \'14\', \'28\'),
               


        
15条回答
  •  臣服心动
    2020-11-22 01:38

    Instead of putting int( ), put float( ) which will let you use decimals along with integers.

提交回复
热议问题