摘要:
echo显示带颜色,需要使用参数-e格式如下:echo -e "\033[字背景颜色;文字颜色m字符串\033[0m"例如: echo -e "\033[41;37m TonyZhang \033[0m"其中41的位置代表底色, 37的位置是代表字的颜色 注:1、字背景颜色和文字颜色之间是英文的“" 阅读全文
摘要:
1.安装环境下载离线安装包地址https://github.com/vmware/harbor/releases/yum install -y dockerpip install -i https://pypi.tuna.tsinghua.edu.cn/simple docker-compose 2 阅读全文
摘要:
默认的pip源的速度实在无法忍受,于是便搜集了一些国内的pip源,如下: 阿里云 https://mirrors.aliyun.com/pypi/simple/中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/ 豆瓣(douban) https://pyp 阅读全文
摘要:
原文连接:https://arkingc.github.io/2017/05/05/2017-05-05-docker-filesystem-overlay/ docker原文:https://docs.docker.com/storage/storagedriver/overlayfs-drive 阅读全文
摘要:
#!/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... 阅读全文
摘要:
#!/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... 阅读全文
摘要:
定制 cobbler TITLE 信息 修改红色部分 vim /etc/cobbler/pxe/pxedefault.template DEFAULT menuPROMPT 0MENU TITLE Auto Install OS System | http://www.cnbba.cnTIMEOUT 阅读全文
摘要:
#!/usr/bin/env python #coding:utf8 #Author:Felix zheng count = 0 # 计数器 username = "111" # 登录用户名 userpassword = "111" # 登录密码 # 读取黑名单用户 f = open("back_u 阅读全文
摘要:
#!/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 阅读全文
摘要:
#!/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 ... 阅读全文