print list in proper way python
This question already has an answer here:
 You have a list of type objects, and both __str__ and __repr__ of type objects have a <type 'x'> form.  
If you want to print list of names of type objects you need to perform conversion manually:
print [t.__name__ for t in values]
                        链接地址: http://www.djcxy.com/p/40942.html
                        上一篇: 获取当前课程的名称?
下一篇: 以正确的方式打印列表python
