摘要: fullstack day02: 数据类型、字符编码、文件处理 http://www.cnblogs.com/linhaifeng/articles/7133357.html 阅读全文
posted @ 2019-03-20 12:11 marcoxu 阅读(550) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2018-05-22 13:20 marcoxu 阅读(6) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/peida/archive/2012/12/17/2821195.html Linux系统中grep命令是一种强大的文本搜索工具,它能使用正则表达式搜索文本,并把匹 配的行打印出来。grep全称是Global Regular Expression Pri 阅读全文
posted @ 2018-04-25 21:12 marcoxu 阅读(118) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2018-04-02 01:11 marcoxu 阅读(2) 评论(0) 推荐(0) 编辑
摘要: root@ubuntu-GW:~# cat vnet_2 vnet50 vnet51 vnet52 vnet61 vnet62 vnet63 vnet7 vnet8 root@ubuntu-GW:~# sed -i 's/\s\+//g' vnet_2 #将不规则的空格、逗号以及制表符统一替换掉ro 阅读全文
posted @ 2018-03-29 20:59 marcoxu 阅读(102) 评论(0) 推荐(0) 编辑
摘要: ############### KVM下 用的image xenial-server-cloudimg-amd64-disk1.img,format=qcow2 apt-get install cloud-utils cat > hostpass <<EOF#cloud-configpassword 阅读全文
posted @ 2018-03-17 22:15 marcoxu 阅读(327) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2018-03-09 16:26 marcoxu 阅读(3) 评论(0) 推荐(0) 编辑
摘要: Linux bonding驱动提供了一个把多个网络接口设备捆绑为单个的网络接口设置来使用,用于网络负载均衡及网络冗余。 bonding一共有7种工作模式(mode): 0:(balance-rr) Round-robin policy: (平衡轮询策略):传输数据包顺序是依次传输,直到最后一个传输完 阅读全文
posted @ 2017-11-11 23:11 marcoxu 阅读(1246) 评论(0) 推荐(0) 编辑
摘要: Part1 单个父类class继承 Part2 多个父类class继承 阅读全文
posted @ 2017-07-15 13:40 marcoxu 阅读(140) 评论(0) 推荐(0) 编辑
摘要: import random# print(random.random()) #浮点数,0-1,无法指定range# print(random.uniform(1,5)) #浮点数,1-5# print(random.randint(1,100)) #1-99随机# print(random.randrange(1,5)) #1-4随机# print(random.cho... 阅读全文
posted @ 2017-07-13 00:59 marcoxu 阅读(233) 评论(0) 推荐(0) 编辑