1
をフォーマットする際に辞書を並べ替え。なぜソートされていないのかわかりません。それは以下のコードを、別の順序で返す。Pythonは、私はこのフォーマットの表現を持って表現
currentPL: -438.627395715
portfolio: Balance: 10101
Transactions: 10
exitPrice: 1.14686
exitTime: 2017-07-12 06:0
entryTime: 2017-07-12 06:
currentlyOpen: True
entryPrice: 1.14686
direction: Long
currentPrice: 1.14188
transactionPL: 627.994644
currentPL100: -0.00434229
units: 88077.79030439684
portfolio: Balance: 10101
Transactions: 10
currentPrice: 1.14228
exitTime: 2017-07-12 06:0
entryTime: 2017-07-12 06:
currentlyOpen: True
entryPrice: 1.14686
direction: Long
transactionPL: 627.994644
currentPL100: -0.00399351
currentPL: -403.396279594
exitPrice: 1.14686
units: 88077.79030439684
...
:ここ
itertools.starmap
を使用して、非常に読みやすいバージョンが上限です。 '{...}'の代わりに '[...]'を使う – inspectorG4dget