python字典长_如何在Python字典中正确格式化长字符串

您可以想象我开始使用Python(对于noob问题很抱歉)。我正在编写一个使用一些长字典条目的代码,我正在努力使Python满足80个字符的限制。在

这是我的字典的剪贴本:"Hybrid functionals": {

"B1LYP": "The one - parameter hybrid functional with Becke '88 exchange and Lee - Yang - Parr correlation(25 % HF exchange)",

"B3LYP and B3LYP/G": "The popular B3LYP functional (20% HF exchange) as defined in the TurboMole program system and the Gaussian program system, respectively",

"O3LYP": "The Handy hybrid functional",

"X3LYP": "The Xu and Goddard hybrid functional",

"B1P": "The one-parameter hybrid version of BP86",

"B3P": "The three-parameter hybrid version of BP86",

"B3PW": "The three-parameter hybrid version of PW91",

"PW1PW": "One-parameter hybrid version of PW91",

"mPW1PW": "One-parameter hybrid version of mPWPW",

"mPW1LYP": "One-parameter hybrid version of mPWLYP",

"PBE0": "One-parameter hybrid version of PBE",

"PW6B95": "Hybrid functional by Truhlar",

"BHANDHLYP": "Half-and-half hybrid functional by Becke"},

那么,在字典中处理超长字符串的正确方法是什么呢?在

谢谢各位

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值