dwjgwsm
V2EX  ›  问与答

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

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

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

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