摘要: echo显示带颜色,需要使用参数-e格式如下:echo -e "\033[字背景颜色;文字颜色m字符串\033[0m"例如: echo -e "\033[41;37m TonyZhang \033[0m"其中41的位置代表底色, 37的位置是代表字的颜色 注:1、字背景颜色和文字颜色之间是英文的“" 阅读全文
posted @ 2017-07-21 10:43 Python学习之路 阅读(515) 评论(0) 推荐(0) 编辑
摘要: 1.安装环境下载离线安装包地址https://github.com/vmware/harbor/releases/yum install -y dockerpip install -i https://pypi.tuna.tsinghua.edu.cn/simple docker-compose 2 阅读全文
posted @ 2017-06-19 17:06 Python学习之路 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 默认的pip源的速度实在无法忍受,于是便搜集了一些国内的pip源,如下: 阿里云 https://mirrors.aliyun.com/pypi/simple/中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/ 豆瓣(douban) https://pyp 阅读全文
posted @ 2017-06-14 12:45 Python学习之路 阅读(304) 评论(0) 推荐(0) 编辑
摘要: 原文连接:https://arkingc.github.io/2017/05/05/2017-05-05-docker-filesystem-overlay/ docker原文:https://docs.docker.com/storage/storagedriver/overlayfs-drive 阅读全文
posted @ 2016-12-29 13:49 Python学习之路 阅读(2636) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python # coding: utf8 # Author:Felix_zh product_list =[ ['Mi 5s',1999], ['HaWei Mate8',2799], ['IPhone 6s plus',6888], ['ThinkPad T460P',7888], ['MacBook Air 13',6... 阅读全文
posted @ 2016-11-23 17:28 Python学习之路 阅读(225) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python # coding:utf-8 shopping_list =[ ['Mi 5s',1999], ['HaWei Mate8',2799], ['IPhone 6s plus',6888], ['ThinkPad T460P',7888], ['MacBook Air 13',6988], ['MacBoo... 阅读全文
posted @ 2016-11-23 17:27 Python学习之路 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 定制 cobbler TITLE 信息 修改红色部分 vim /etc/cobbler/pxe/pxedefault.template DEFAULT menuPROMPT 0MENU TITLE Auto Install OS System | http://www.cnbba.cnTIMEOUT 阅读全文
posted @ 2016-11-07 16:27 Python学习之路 阅读(330) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python #coding:utf8 #Author:Felix zheng count = 0 # 计数器 username = "111" # 登录用户名 userpassword = "111" # 登录密码 # 读取黑名单用户 f = open("back_u 阅读全文
posted @ 2016-11-04 11:53 Python学习之路 阅读(298) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python #coding:utf8 #Author:Felix zheng age_of_felix = 32 count = 0 for i in range(3): guess_age = int(input("guess age:")) if guess_ag 阅读全文
posted @ 2016-11-04 11:52 Python学习之路 阅读(183) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python #coding:utf8 #Author:Felix zheng age_of_felix = 32 count = 0 while count < 3: guess_age = int(input("guess age:")) if guess_age == age_of_felix: print("yes,you ... 阅读全文
posted @ 2016-11-04 11:51 Python学习之路 阅读(187) 评论(0) 推荐(0) 编辑