0
我有一组列表看起来像这样在打印时的:打开列表的列表为列
=================Tableaus=================
---1----2----3----4----5----6----7----8---
[K♠, 5♠, 10♥, 2♥, 7♦, Q♣, 4♣]
[Q♠, 4♠, 9♥, A♥, 6♦, J♣, 3♣]
[J♠, 3♠, 8♥, K♦, 5♦, 10♣, 2♣]
[10♠, 2♠, 7♥, Q♦, 4♦, 9♣, A♣]
[9♠, A♠, 6♥, J♦, 3♦, 8♣, None]
[8♠, K♥, 5♥, 10♦, 2♦, 7♣, None]
[7♠, Q♥, 4♥, 9♦, A♦, 6♣, None]
[6♠, J♥, 3♥, 8♦, K♣, 5♣, None]
如何把这些名单成整洁的列?我也想删除最后4个名单中的“无”,但到目前为止,我的尝试都给了我错误。
删除'None's很容易,排列柱很多,* *更难... –
尝试寻找“漂亮的打印”解决方案,例如http://stackoverflow.com/questions/9712085/numpy-pretty-print-tabular-data – Riaz
你今天有家庭任务的最后期限?请参阅http://stackoverflow.com/questions/43456021/printing-multiple-lists-vertically/43456772#43456772 – VeGABAU