Am I safe mixing types in a Python list?

后端 未结 0 767
悲&欢浪女
悲&欢浪女 2021-02-11 13:22

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

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


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