发布网友
共1个回答
热心网友
type(a)改成print (type(a)).
运行文件和你在IDLE中执行不一样的,IDLE中是自动打印,执行文件要你自己手动打印才行。
另:hello.py应有权限才能执行,chmod 775 hello.py
执行命令是python hello.py