摘要:
函数是逻辑结构化和过程化的一种编程方法 三种编程方式: 面向对象:>>>类>>>class 面向过程:>>>过程>>>def 函数式编程:>>>函数>>>def #-*- coding:utf-8 -*- __Author__ = "Devin" def text(x): "The function 阅读全文
posted @ 2020-04-22 13:35
汝南
阅读(104)
评论(0)
推荐(0)
摘要:
1、在线安装 yum install ansible -y 2、下载离线包 yum install -y ansible --downloaddir=/root/ansible --downloadonly 3、离线包安装 cd /root/ansible rpm -ivh * 阅读全文
posted @ 2020-04-22 12:02
汝南
阅读(91)
评论(0)
推荐(0)
摘要:
1、写死要替换的内容 __Author__ = "Devin" f1 = open("song",'r',encoding='utf-8') f2 = open("song.bak",'w',encoding='utf-8') for line in f1: if "寻找一个我属于的地方" in l 阅读全文
posted @ 2020-04-22 10:57
汝南
阅读(190)
评论(0)
推荐(0)

浙公网安备 33010602011771号