摘要:
tensorflow.initialize_all_variables已改为tensorflow.global_variables_initializer() AttributeError: module ‘tensorflow.python.training.training’ has no at 阅读全文
摘要:
一、re模块 正则就是用一些具有特殊含义的符号组合到一起(称为正则表达式)来描述字符或者字符串的方法。或者说:正则就是用来描述一类事物的规则。(在Python中)它内嵌在Python中,并通过 re 模块实现。正则表达式模式被编译成一系列的字节码,然后由用 C 编写的匹配引擎执行。 常用匹配模式(元 阅读全文
摘要:
import os def file_handler(backend_data,res=None,type='fetch'): if type == 'fetch': with open('haproxy.conf','r') as read_f: tag=False ret=[] for read 阅读全文