Cat brother teach you to write reptile 002-- job - Pikachu Print

operation

Please use the print () function will print out the following Pikachu, three ways

    へ          /|
    /\7       ∠_/
   /  │     /  /
  │  Z _,<  /     /`ヽ
  │          ヽ     /    〉
   Y          `   /    /
  イ●  、  ●    ⊂⊃〈    /
  ()   へ        |  \〈
    >ー 、_   ィ   │ //
   / へ     /  ノ<| \\
   ヽ_ノ    (_/   │//
    7              |/
    >―r ̄ ̄`ー―_
复制代码

The first answer, three single quotes

print('''
    へ          /|
    /\7       ∠_/
   /  │     /  /
  │  Z _,<  /     /`ヽ
  │          ヽ     /    〉
   Y          `   /    /
  イ●  、  ●    ⊂⊃〈    /
  ()   へ        |  \〈
    >ー 、_   ィ   │ //
   / へ     /  ノ<| \\
   ヽ_ノ    (_/   │//
    7              |/
    >―r ̄ ̄`ー―_
''')
复制代码

The second answer, use print () function wrap function

print('    へ          /|')
print('    /\7       ∠_/')
print('   /  │     /  /')
print('  │  Z _,<  /     /`ヽ')
print('  │          ヽ     /    〉')
print('   Y          `   /    /')
print('  イ●  、  ●    ⊂⊃〈    /')
print('  ()   へ        |  \〈')
print('    >ー 、_   ィ   │ //')
print('   / へ     /  ノ<| \\')
print('   ヽ_ノ    (_/   │//')
print('    7              |/')
print('    >―r ̄ ̄`ー―_')
复制代码

The third answer, use the escape \nto wrap

print('    へ          /|\n     /\7       ∠_/\n    /  │     /  /\n   │  Z _,<  /     /`ヽ\n   │          ヽ     /    〉\n    Y          `   /    /\n   イ●  、  ●    ⊂⊃〈    /\n   ()   へ        |  \〈\n     >ー 、_   ィ   │ //\n    / へ     /  ノ<| \\\n    ヽ_ノ    (_/   │//\n     7              |/\n     >―r ̄ ̄`ー―_\n')
复制代码

Quick Jump:

Cat brother teach you to write reptile 000-- begins .md
cat brother teach you to write reptile 001 - print () functions and variables .md
cat brother teach you to write reptile 002-- job - Pikachu .md print
cat brother teach you to write reptiles 003 data type conversion .md
cat brother teach you to write reptile 004-- data type conversion - small practice .md
cat brother teach you to write reptile 005-- data type conversion - small jobs .md
cat brother teach you to write reptile 006- - conditional and nested conditions .md
cat brother teach you to write 007 reptile conditional and nested conditions - small operating .md
cat brother teach you to write reptile 008 - input () function .md
cat brother teach you to write reptiles 009 - input () function - AI little love students .md
cat brother teach you to write a list of 010 reptiles, dictionaries, circulation .md
cat brother teach you to write reptile 011-- lists, dictionaries, circulation - small jobs .md
cat brother teach you to write a Boolean value, and four reptile 012-- statements .md
cat brother teach you to write a Boolean value, and four reptile 013-- statements - smaller jobs .md
cat brother teach you to write reptile 014 - pk game. md
cat brother teach you to write reptile 015 - pk game (new revision) .md
cat brother teach you to write reptile 016-- function .md
cat brother teach you to write reptile 017-- function - a small job .md
cat brother to teach you write reptile 018--debug.md
cat brother teach you to write reptile 019 - debug- job. md
cat brother teach you to write reptiles 020-- Classes and Objects (on) .md
cat brother teach you to write reptiles 021-- Classes and Objects (a) - Job .md
Cat brother teach you to write reptiles 022-- Classes and Objects (lower) .md
cat brother teach you to write reptiles 023-- Classes and Objects (lower) - Job .md
cat brother teach you to write reptile 024-- decoding coded && .md
cat brother teach you to write reptile 025 && decoding coded - small jobs .md
cat brother teach you to write reptile 026-- module .md
cat brother teach you to write reptile 027-- module introduces .md
cat brother teach you to write reptile 028- - introduction module - small job - billboards .md
cat brother teach you to write Preliminary -requests.md reptile reptilian 029--
cat brother teach you to write reptile reptilian 030-- Preliminary -requests- job .md
cat brother teach you to write 031 reptiles - reptile basis -html.md
cat brother teach you to write reptile reptilian 032-- first experience -BeautifulSoup.md
cat brother teach you to write reptile reptilian 033-- first experience -BeautifulSoup- job .md
cat brother teach you to write reptile 034- - reptile -BeautifulSoup practice .md
cat brother teach you to write 035-- reptile reptilian -BeautifulSoup practice - job - film top250.md
cat brother teach you to write 036-- reptile reptilian -BeautifulSoup practice - work - work to resolve .md movie top250-
cat brother teach you to write 037-- reptile reptiles - to listen to songs .md baby
cat brother teach you to write reptile 038-- arguments request .md
cat brother teach you to write data stored reptile 039-- .md
cat brother teach you to write reptiles 040-- store data - Job .md
cat brother teach you to write reptile 041-- analog login -cookie.md
Cat brother teach you to write reptile 042 - session usage .md
cat brother teach you to write reptile 043-- analog browser .md
cat brother teach you to write reptile 044-- analog browser - job .md
cat brother teach you to write reptiles 045-- coroutine .md
cat brother teach you to write reptile 046-- coroutine - practice - what to eat not fat .md
cat brother teach you to write reptile 047 - scrapy framework .md
cat brother teach you to write reptile 048-- .md reptile reptiles and anti-
cat brother teach you to write reptile 049-- end Sahua .md

Reproduced in: https: //juejin.im/post/5cfbdbe7f265da1b8e7091f0

Guess you like

Origin blog.csdn.net/weixin_33758863/article/details/91465274