正如您可以想象的,我正在開始使用Python(對於noob問題抱歉)。我正在編寫一個使用一些長字典條目的代碼,並且我正努力讓Python滿意80個字符的限制。如何在Python字典中正確地格式化長字符串
這裏是我的字典的剪斷:
"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"},
那麼,什麼是對付在字典中的極長串的正確方法是什麼?
Thanks guys guys
是你的老闆抱怨,或者你的棉短絨? –