cgi脚本 By duncan21Posted on 2022 年 11 月 28 日2022 年 11 月 28 日Posted in PythonTagged cgiNo Comments on cgi脚本 脚本: [root@ilovelluvia cgi-bin]# cat index.sh #!/bin/bash echo -e "Content-type: text/html;charse[......]阅读全文 Read More
Python抽取文件 By duncan21Posted on 2022 年 11 月 17 日2022 年 11 月 17 日Posted in PythonTagged 文件No Comments on Python抽取文件 需求:要从服务器上的某个目录中抽取(复制整个目录结构)需要的文件(目录),到其他的目录下 实现:以下是源目录结构 [root@ilovelluvia ~]# tree /teddylu /t[......]阅读全文 Read More
python复习day2 By duncan21Posted on 2021 年 6 月 29 日Posted in PythonNo Comments on python复习day2 1、运算符 Python语言支持以下类型的运算符: 1)算术运算符 2)比较(关系)运算符 3)赋值运算符 4)逻辑运算符 5)位运算符 6)成员运算符 7)身份运算符 8)运算[……] 阅读全文 Read More
python复习day1 By duncan21Posted on 2021 年 6 月 24 日2021 年 6 月 24 日Posted in PythonNo Comments on python复习day1 Part1开发: 开发语言: 1)高级语言:Python Java、PHP C# Go ruby C++… ===》 字节码 2)低级语言:C、汇编 ===》 机器码 语言之间的对比:[……] 阅读全文 Read More
[转载]10个由Python构建的著名网站 By duncan21Posted on 2021 年 3 月 17 日2021 年 3 月 18 日Posted in PythonTagged ins3 Comments on [转载]10个由Python构建的著名网站 互联网上有成千上万通过python构建的网站。Python是由Guido van Rossum于1991年所创建的一种强大的编程语言,初学者以及经验丰富的开发人员均广泛使用Python。 当今许[……] 阅读全文 Read More
Python学习之利用python实现ssh功能 By duncan21Posted on 2015 年 9 月 29 日2021 年 4 月 14 日Posted in Python 目标:利用python实现ssh功能 环境:2台linux 服务器 实现过程 sever端: [codesyntax lang=”python”] [root@local[......]阅读全文 Read More
Python学习之练习程序一 By duncan21Posted on 2015 年 9 月 12 日2021 年 4 月 14 日Posted in Python 目标: 编写可供用户查询的员工信息表 满足一下要求: 1.用户认证 2.员工信息表包括ID, Name, Department, Phone (contact_list.txt) 3.查询关[……] 阅读全文 Read More
如何实现python在linux中输出带不同颜色 By duncan21Posted on 2015 年 8 月 3 日Posted in PythonTagged 颜色 格式:\033[显示方式;前景色;背景色m 说明: 前景色 &nbs[……] 阅读全文 Read More
第一个Python脚本 By duncan21Posted on 2015 年 8 月 2 日Posted in Python 目标: 编写可供用户查询的员工信息表 要求: 1.实现用户认证 2.员工信息表包括ID, Name, Department, Ph[……] 阅读全文 Read More
python实现tab键自动补全 By duncan21Posted on 2015 年 7 月 23 日Posted in PythonTagged tab [root@M1-Server ~]# python -V Python 2.6.6 #脚本 [[……] 阅读全文 Read More
What is Python By duncan21Posted on 2015 年 2 月 19 日Posted in Python Python 是一种面向对象、解释型计算机程序设计语言,由Guido van Rossum于1989年底发明,第一个公开发行版发行于1991年,Python 源代码同样遵循 GPL(GNU Ge[……] 阅读全文 Read More