To be a better coder
发布时间:2019-02-25 16:57:05
[root@localhost /]# cat strduiqi.py #!/bin/pythonimport relog=open('/var/log/pacman.log').read()print re.sub('(\d{4})-(\d{2})-(\d{2})',r'\2/\3/\1',log)[root@localhost /]# 捕获组命名[root@localhost /]# cat strduiqi.py #!/bin/pythonimport relog=open('/var/log/pacman.log').read()print re.sub.........【阅读全文】
发布时间:2019-02-25 16:39:44
[root@localhost /]# cat strduiqi.py #!/bin/pythonmydict={'name':'zhuliguo','age':29,'student':'student'}length=max(map(len,mydict.keys()))for n in mydict: print(n.ljust(length),':',mydict[n])[root@localhost /]# ......【阅读全文】
发布时间:2019-02-19 15:34:09
查看dm设备信息命令。[root@cnsz031722 ~]#dmsetup lsmpath2 (253, 8)VolGroup02-LVcustomer (253, 11)VolGroup00-LVwls (253, 5)VolGroup04-lv_ldap4 (253, 15)VolGro.........【阅读全文】
发布时间:2019-02-15 14:05:32
https://blog.csdn.net/wangpeng22/article/details/73930872NVMe协议调试总结1、NVMe问答NVMe 是什么?百度百科这么说的: NVMe(Non-VolatileMemory express),是一种建立在M.2接口上的类似AHCI的一种协议,是专门为闪存类存储设计的协议。中文名 NVMe协议 外文名 Non-Volatile.........【阅读全文】