返回总目录页
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 68 下一页
摘要: hello-world 最小的镜像 从Docker Hub 下载这个镜像 [root@mcw1 /application]$ docker pull hello-worldUsing default tag: latestlatest: Pulling from library/hello-worl 阅读全文
posted @ 2021-12-26 23:16 马昌伟 阅读(514) 评论(0) 推荐(0) 编辑
摘要: 部署单机版es tar xf elasticsearch-7.16.0-linux-x86_64.tar.gz./bin/elasticsearch -dcan not run elasticsearch as root su - machangwei./bin/elasticsearch -d # 阅读全文
posted @ 2021-12-22 01:54 马昌伟 阅读(2427) 评论(0) 推荐(0) 编辑
摘要: 原文链接:https://www.cnblogs.com/lanyinhao/p/9634742.html 1、模块说明 requests是使用Apache2 licensed 许可证的HTTP库。 用python编写。 比urllib2模块更简洁。 Request支持HTTP连接保持和连接池,支持 阅读全文
posted @ 2021-12-21 18:48 马昌伟 阅读(1630) 评论(0) 推荐(0) 编辑
摘要: 参考官网:http://www.ansible.com.cn/docs/developing_modules.html#tutorial 阅读 ansible 附带的模块(上面链接)是学习如何编写模块的好方法。但是请记住,ansible 源代码树中的某些模块是内在的,因此请查看service或yum 阅读全文
posted @ 2021-12-20 18:59 马昌伟 阅读(1842) 评论(0) 推荐(0) 编辑
摘要: SimpleHTTPServer实现文件的展示和下载 可以用python2.7直接启动一个进程。以命令执行的当前目录为页面根目录,如果不存在index.html,默认展示当前目录的所有文件。 python3改动了:python -m http.server 端口号 如果有txt文件就是,可以浏览器页 阅读全文
posted @ 2021-12-20 18:58 马昌伟 阅读(4650) 评论(0) 推荐(0) 编辑
摘要: 总结 正确的修改进文件命令(替换文件内容):sed -i "s#machangwei#mcw#g" mcw.txt 正确的修改追加进文件命令(追加文件内容):sed -i "\$a 8: wo bu hao\!" mcw.txtsed -i '$a 7: wo hen hao!' mcw.txt 最 阅读全文
posted @ 2021-12-20 18:57 马昌伟 阅读(745) 评论(0) 推荐(0) 编辑
摘要: 字符串和单元格内容拼接函数CONCATENATE a@马踏星空:=CONCATENATE(D2,E2,F2)拼接指定单元格内字符串,无分隔符 a@马踏星空:=CONCATENATE(I4,"-",E4)拼接指定单元格内字符串,指定分隔符- a@马踏星空:=CONCATENATE("Nginx","- 阅读全文
posted @ 2021-12-20 12:53 马昌伟 阅读(60) 评论(0) 推荐(0) 编辑
摘要: 简单绘图,折线图,并保存为图片 import matplotlib.pyplot as plt x=[1,2,3,4,5] y=[10,5,15,10,20] plt.plot(x,y,'ro-',color='blue') plt.savefig('testblueline.jpg') plt.s 阅读全文
posted @ 2021-12-20 12:50 马昌伟 阅读(1047) 评论(0) 推荐(0) 编辑
摘要: 1、两个字符串对比 import difflib text1=""" test1 #定义字符串 hellow my name is machanwei! difflib document v7.4 add str """ text1_lines=text1.splitlines() #以行进行分隔, 阅读全文
posted @ 2021-12-20 12:48 马昌伟 阅读(739) 评论(0) 推荐(0) 编辑
摘要: django实现将linux目录和文件名列出来 def index(request): obj=models.USER.objects.all() fileroot = 'd:\machangwei' fli = os.listdir(fileroot) print(fli) dirdic = {} 阅读全文
posted @ 2021-12-19 15:24 马昌伟 阅读(45) 评论(0) 推荐(0) 编辑
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 68 下一页
博主链接地址:https://www.cnblogs.com/machangwei-8/