weixin_39605414 2020-11-21 16:46
浏览 0

Thonny freezes when printing 80x80 matrix

Original report by Alchemix (Bitbucket: alchemix_II ).

Thonny 2.1.17 freezes on my mac when starting the following program from the IDE:


matrix = [list(range(80)) for x in range(80)]
print(matrix)

该提问来源于开源项目:thonny/thonny

  • 写回答

5条回答 默认 最新

  • weixin_39605414 2020-11-21 16:46
    关注

    The Text widget used in Shell is very slow with showing long lines and your code tries to print a really long line. In my computer it took more than a minute to show it.

    I don't know what to do about it.

    BTW. IDLE uses same widget and has same problem.

    评论

报告相同问题?