Am I safe mixing types in a Python list?

后端 未结 0 1759
迷失自我
迷失自我 2021-02-11 13:59

Are there unforeseen problems in mixing different types in a Python list? For example:

import random
data = [[\"name1\", \"long name1\", 1, 2, 3],
        [\"nam         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题