如何打破以下的python行

Fre*_*kNS 2 python pep8

我遇到了几行与此类似的代码,但我不确定如何打破它:

blueprint = Blueprint(self.blueprint_map[str(self.ui.blueprint_combo.currentText())], runs=self.ui.runs_spin.text(), me=self.ui.me_spin.text(), pe=self.ui.pe_skill_combo.currentIndex())
Run Code Online (Sandbox Code Playgroud)

提前致谢

ken*_*der 14

blueprint = Blueprint(
    self.blueprint_map[str(self.ui.blueprint_combo.currentText())],
    runs=self.ui.runs_spin.text(), 
    me=self.ui.me_spin.text(),
    pe=self.ui.pe_skill_combo.currentIndex(),
)
Run Code Online (Sandbox Code Playgroud)


Joh*_*ooy 5

这个怎么样

blueprint_item = self.blueprint_map[str(self.ui.blueprint_combo.currentText())]
blueprint = Blueprint(blueprint_item,
                      runs=self.ui.runs_spin.text(),
                      me=self.ui.me_spin.text(),
                      pe=self.ui.pe_skill_combo.currentIndex())
Run Code Online (Sandbox Code Playgroud)