首次与python的感想
2015-11-23 15:36
423 查看
之前工作当中都提到python,不清楚是什么,然后百度了下,很棒
linux中自带python
登陆linux,输入python,可以查看当前python版本
基本指令 which python 查看python的安装目录
编写一个python简单脚本
touch test.py 创建一个文件
vi test.py 编写
脚本里应有
#!/usr/bin/env python 告诉系统怎么执行脚本
xxxxxx 要编写的脚本
chmod 755 test.py 给这个脚本赋权
最后一步就是 ./test.py或者python test.PY
linux中自带python
登陆linux,输入python,可以查看当前python版本
基本指令 which python 查看python的安装目录
编写一个python简单脚本
touch test.py 创建一个文件
vi test.py 编写
脚本里应有
#!/usr/bin/env python 告诉系统怎么执行脚本
xxxxxx 要编写的脚本
chmod 755 test.py 给这个脚本赋权
最后一步就是 ./test.py或者python test.PY
相关文章推荐
- 欢迎使用CSDN-markdown编辑器
- python游戏编程——跟13岁儿童学编程
- Python的一点使用心得
- python 收email实例 -解决标题和正文的中文显示
- python 在MySQL中的模糊匹配
- LeetCode OJ 系列之219 Contains Duplicate II --Python
- python的验证码识别.md
- python 的expect,paramiko ssh交互使用
- LeetCode OJ 系列之217 Contains Duplicate --Python
- python 编码问题(转载)
- isalnum()和isalpha()
- 恶补
- python发送邮件
- python 学习小结(1)
- 【Python】django权限管理
- python帮助信息查看以及笔记
- Python基础之【第四篇】
- python codeforces 322 div2 C
- Python问题汇总
- PYTHON之全局变量