dwjgwsm
V2EX  ›  问与答

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

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

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

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