在我的应用程序中,我将div (html)列表附加到父div容器html = Mustache.to_htmldiv to which I append my cards %ul.muses_card_container
因此,本质上我只是将一个div列表附加到一个div,并通过设置容器的宽度来包装它我的意图是在我点击后展开卡片</
奇怪的是,我使用的是在迭代中构建的Python。 # This prints all the names of the cards in the deck before the iterationprint(str([card.name for card in self.thegame.game_deck.deck[0]]