print ("test",file=name)类似的方法在python 2中需要先引入 __future__才可使用

 

import __futhure__ import print_function

相关文章: