Python print ascii banner

2020-05-21  本文已影响0人  夙小叶
pid=80546226
    print("""
           _____                  _________       _____       ____ ___            .___       __          
          /     \ _____    ____  /   _____/ _____/ ____\____ |    |   \______   __| _/____ _/  |_  ____  
         /  \ /  \\__  \ _/ ___\ \_____  \ /  _ \   __\/ __ \|    |   /\____ \ / __ |\__  \\   __\/ __ \ 
        /    Y    \/ __ \\  \___ /        (  <_> )  | \  ___/|    |  / |  |_> > /_/ | / __ \|  | \  ___/ 
        \____|__  (____  /\___  >_______  /\____/|__|  \___  >______/  |   __/\____ |(____  /__|  \___  >
                \/     \/     \/        \/                 \/          |__|        \/     \/          \/ 
    """)

问题:Anomalous backslash in string: '\ '. String constant might be missing an r prefix.
解决:String constant might be missing an r prefix.

    print(r"""
           _____                  _________       _____       ____ ___            .___       __          
          /     \ _____    ____  /   _____/ _____/ ____\____ |    |   \______   __| _/____ _/  |_  ____  
         /  \ /  \\__  \ _/ ___\ \_____  \ /  _ \   __\/ __ \|    |   /\____ \ / __ |\__  \\   __\/ __ \ 
        /    Y    \/ __ \\  \___ /        (  <_> )  | \  ___/|    |  / |  |_> > /_/ | / __ \|  | \  ___/ 
        \____|__  (____  /\___  >_______  /\____/|__|  \___  >______/  |   __/\____ |(____  /__|  \___  >
                \/     \/     \/        \/                 \/          |__|        \/     \/          \/ 
    """)
上一篇下一篇

猜你喜欢

热点阅读