python相关
包括python环境的搭建,和python的基础语法
海蜘蛛er
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
python(组件,封装,继承,多态)
文章目录前言组件封装object1object2object3面向对象练习1面向对象 栈面向对象 队列面向对象 练习2面向对象练习继承私有方法12多态后记 前言 组件 import itchat import time import random itchat.auto_login() # while True: # itchat.send('hello westos',toUserName='filehelper') # time.sleep(random.randint(1,3))原创 2020-05-19 15:41:22 · 617 阅读 · 0 评论 -
python(os相关)
文章目录前言os一些用法diros.addtime_change练习后记 前言 os os: posix -> linux nt-> windows import os print(os.name) info = os.uname() print(info) print(info.sysname) print(info.nodename) print(os.environ) print(os.environ.get('PATH')) 运行结果: posix posix.uname_res原创 2020-05-19 14:39:21 · 511 阅读 · 0 评论 -
python(file)
#原创 2020-05-18 16:39:50 · 578 阅读 · 0 评论 -
python(decorator)
#原创 2020-05-18 14:54:18 · 8166 阅读 · 0 评论 -
python(生成式)
#原创 2020-05-10 11:09:52 · 354 阅读 · 0 评论 -
python(高阶,匿名)
#原创 2020-05-18 14:16:47 · 383 阅读 · 0 评论 -
python(function)
文章目录前言函数参数返回值变量练习后记 前言 函数 print(‘hello’) def hello(): print(‘hello1’) print(‘hello2’) print(‘hello3’) hello() def add(): num1 = 20 num2 = 30 result = num1 + num2 print(’%d + %d = %d’ %(num1,num2,resul...原创 2020-05-18 16:41:55 · 398 阅读 · 0 评论 -
python(list,tuple,set,dict)
前言原创 2020-05-02 20:58:47 · 1122 阅读 · 0 评论 -
python(string)
前言原创 2020-05-02 16:37:10 · 785 阅读 · 0 评论 -
python(if)
文章目录前言if(单一条件)if(if...else...)if(if...elif...else)if(嵌套)if (and,or)if(练习)其他random后记 前言 python 对于运维人员来说十分重要 实验在pycharm之上完成 重命名:shift + F6 if(单一条件) 例 if condition: success thing … age = 12 if ...原创 2020-05-01 00:28:43 · 650 阅读 · 0 评论 -
python(for,while,break,continue,exit())
文章目录前言for(用法)for(练习)for(练习1)for(练习2)for(练习3)while(用法)while(练习)while(练习1)while(练习2)while(练习3)break continue exit()其他range循环计算后记 前言 for(用法) 例: for ITEM in range(10): … 1.求0~100加法和 sum = 0 for i ...原创 2020-05-01 01:07:40 · 676 阅读 · 0 评论 -
如何在linuxah上安装python
文章目录下载python下载IDE工具 下载python 1.去官网下载最新的包 2.解压 tar zxf Python-3.7.7.tgz 3.安装 yum install gcc -y 4.解决依赖性,安装 mount /dev/cdrom /softwaresource/ yum install gcc -y 5…/configure --prefix=/usr/local/python3 ...原创 2020-05-02 21:20:11 · 260 阅读 · 0 评论
分享