您可以想象我开始使用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"},
那么,在字典中处理超长字符串的正确方法是什么呢?在
谢谢各位