dwjgwsm
V2EX  ›  问与答

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

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

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

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