dwjgwsm
V2EX  ›  问与答

defaultdict 打印输出格式如何去掉前面的 type 说明?

  •  
  •   dwjgwsm · Jan 11, 2018 · 2087 views
    This topic created in 3110 days ago, the information mentioned may be changed or developed.

    我比较喜欢使用 defaultdict,但是输出的时候总是前面自带一个类型说明,defaultdict(<type 'int'>,看着很不爽,有没有什么办法把这个说明搞掉

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2593 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 15:58 · PVG 23:58 · LAX 08:58 · JFK 11:58
    ♥ Do have faith in what you're doing.