指定python文件python2或python3运行

在文件首行写:

#! python2或#! python3

写在#coding=utf-8前面