Pzdmultiverse
V2EX  ›  问与答

为什么下面两行的前面会有两个空格呢?

  •  
  •   Pzdmultiverse · Jun 29, 2017 · 2821 views
    This topic created in 3443 days ago, the information mentioned may be changed or developed.

    2 replies  •  2017-07-01 22:56:15 +08:00
    cbwzwsq
    cbwzwsq
    Jun 29, 2017
    1
    又问题先看文档 https://docs.python.org/3/library/functions.html#print
    满足你需求的写法应该是 print(a,b,c,sep='\r\n')
    Pzdmultiverse
    Pzdmultiverse
    OP
    Jul 1, 2017
    2
    @cbwzwsq 谢谢!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2285 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 14:02 · PVG 22:02 · LAX 06:02 · JFK 09:02
    ♥ Do have faith in what you're doing.