摘要:
2,如何解决中文乱码? 查看zabbix的web目录下include/defines.inc.php文件中对于字体的定义: define('ZBX_FONTPATH', realpath('assets/fonts')); // where to search for font (GD > 2.0. 阅读全文
摘要:
1:elasticserach安装 rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch Create a file called elasticsearch.repo in the /etc/yum.repos.d/ dir 阅读全文
摘要:
# 匹配变量名是否符合要求 import re def main(): names = ["name1", "_name", "2_name", "__name__", "___", "name!"] for name in names: ret = re.match("^[a-zA-Z_][a-zA-Z0-9]*$", name) ... 阅读全文
摘要:
判断是否可迭代 In [4]: from collections import Iterable In [6]: isinstance(123,Iterable) Out[6]: False In [11]: isinstance((123),Iterable) Out[11]: False In 阅读全文