12 2021 档案
摘要:规范:注意函数命令规范。 import sysclass ZookeeperManager(): # class ClassName: 类命名规范 def __init__(self, zk_host, zk_port, zk_path, timeout=5): self.zk_host = zk_
阅读全文
摘要:Python开发基础--工具1、安装Python3.6[root@www src]# wget https://www.python.org/ftp/python/3.6.8/Python-3.6.8.tgz[root@www src]# tar zxvf Python-3.6.8.tgz[root
阅读全文
摘要:一、AWK使用方法 NR - Number of Record - 当前处理的行是第几行(因为awk是流处理工具,一行一行处理的,所以NR在不停的自增1)NF - Number of Fileds - 当前行有多少列数据(这个在每行都会根据设定的分割符重新计算,默认分割符是任意连续的多个空白符) B
阅读全文