博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
config模块
阅读量:6985 次
发布时间:2019-06-27

本文共 666 字,大约阅读时间需要 2 分钟。

#__author__:Administrator} #data: 2017/12/7 #配置文件 import configparser config = configparser.ConfigParser() config["DEFAULT"] = {'ServerAliveInterval': '45',                      'Compression': 'yes',                      'CompressionLevel': '9'} config['bitbucket.org'] = {} config['bitbucket.org']['User'] = 'hg' config['topsecret.server.com'] = {} topsecret = config['topsecret.server.com'] topsecret['Host Port'] = '50022'  # mutates the parser topsecret['ForwardX11'] = 'no'  # same here config['DEFAULT']['ForwardX11'] = 'yes' with open('example.ini', 'w') as configfile:     config.write(configfile)

转载于:https://www.cnblogs.com/xuxu-learn-python/p/8056488.html

你可能感兴趣的文章
百度搜索查询命令——组合型
查看>>
jquery判断当前设备是手机还是电脑并跳转
查看>>
linux中编译C语言程序
查看>>
【洛谷】P3367 【模板】并查集
查看>>
R语言通过loess去除某个变量对数据的影响
查看>>
等式数量---hash算法
查看>>
不等式
查看>>
Proximal Algorithms 4 Algorithms
查看>>
树形dp
查看>>
玩转Vuejs--核心原理
查看>>
异常检测算法:Isolation Forest
查看>>
快速把web项目部署到weblogic上
查看>>
.net使用memcached
查看>>
one pragmatical sqlhelper
查看>>
.Net 文件流 System.IO之Stream
查看>>
Jmeter 笔记
查看>>
一个JS对话框,可以显示其它页面,
查看>>
IDEA ctrl+alt+L 格式化快捷键无效时解决
查看>>
自定义Chrome浏览器
查看>>
前端小知识
查看>>