Pzdmultiverse
V2EX  ›  问与答

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

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

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