0

私のコードには、Panda 1.7.2/Python 2.4 に由来するこの部分があります。

Factions = tuple(lambda [outmost-iterable]: for x in [outmost-iterable]: AvatarType(faction = x)(range(9)))
(Undead, Navy, Creature, Townfolk, Pirate, TradingCo, Ghost, VoodooZombie, BountyHunter) = Factions

Python 2.7/Panda 1.8.1 でコードを実行すると、次のエラーが表示されます。

Factions = tuple(lambda x for x in [outmost-iterable]:
                                  ^
SyntaxError: invalid syntax

修正可能なすべての方法を試しましたが、まだ理解できません。ドキュメントに記載されておらず、本当に必死です。2.7と互換性があるように、少し修正する方法はありますか?

4

0 に答える 0