python 入门

1、 python 脚本的编写

  文件:hello.py

  第一步:在第一行添加  #!/usr/bin/env python

#!/usr/bin/env python3
print("hello world");

   第二步:修改 .py文件的权限  chmod a+x hello.py

2、执行 ./hello.py

努力做一名出色的技术人!
原文地址:https://www.cnblogs.com/shenqidu/p/10329522.html