46
26

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

PythonใŒใƒ—ใƒญใ‚ฐใƒฉใƒŸใƒณใ‚ฐๅˆๅญฆ่€…ใซๅฌ‰ใ—ใ„็†็”ฑ

46
Posted at

Pythonใ€2021ๅนดใฎTIOBEใƒ—ใƒญใ‚ฐใƒฉใƒŸใƒณใ‚ฐ่จ€่ชžใ‚ชใƒ–ใ‚ถใ‚คใƒคใƒผใ‚’ๅ—่ณž๏ผšCodeZine๏ผˆใ‚ณใƒผใƒ‰ใ‚ธใƒณ๏ผ‰
index | TIOBE - The Software Quality Company
Pythonใ€็›ธๅค‰ใ‚ใ‚‰ใšไธ€็•ชไบบๆฐ—ใ‚‰ใ—ใ„ใ€‚ใจใ„ใ†ใƒใ‚จใƒ ใงใ™ใ€‚

ๆ•™ใˆใ‚‹ๆ–นใจๆ•™ใ‚ใ‚‹ๆ–นใฎใ‚ฎใƒฃใƒƒใƒ—

ใ‚ฎใƒฃใƒƒใƒ—ใŒใ‚ใ‚‹ใจๆฅฝใ—ใใชใ„ใ€ใจใ„ใ†่ฉฑใŒใ‚ใ‚Šใพใ™ใ€‚

ใƒ—ใƒญใ‚ฐใƒฉใƒŸใƒณใ‚ฐๆ•™่‚ฒใงใฏ
ใ€Œใพใšๆ‰‹ใ‚’ๅ‹•ใ‹ใ—ใฆใฟใ‚ˆใ†ใ€‚ใ“ใ‚Œใ‚’ๆ‰“ใก่พผใ‚“ใง๏ผใ€
ใ€Œ(๏ฝถ๏พ€๏ฝถ๏พ€)ใ€
ใ€Œใ“ใ‚Œใ‚’ใƒ“ใƒซใƒ‰ใ—ใฆโ€ฆใ€

$ ./hello
Hello, world!
$

ใ€Œใปใ‚‰ๆ–‡ๅญ—ใŒๅ‡บใŸใ€ใ™ใ”ใ„ใ‚ˆใญ๏ผ๏ผŸใ€
ใ€Œ(ใ ใ‹ใ‚‰ไฝ•โ€ฆ๏ผŸ)ใ€
ใจใ„ใ†ใฎใŒใ‚ˆใใ‚ใ‚‹ใ€‚

ใ ใ‹ใ‚‰ใŸใจใˆใใ‚ŒใŒPythonใ ใจใ—ใฆใ‚‚ใ€Œใƒ—ใƒญใ‚ฐใƒฉใƒŸใƒณใ‚ฐใ€ใฏใ‚ฏใƒชใ‚จใ‚คใƒ†ใ‚ฃใƒ–ใงใ‚ซใƒƒใ‚ณใ‚คใ‚คไฝ•ๆŸใ‹ใŒใ‚ฎใƒฅใƒผใƒณใจใ‹ใƒใƒผใƒณใจใ‹่€ƒใˆใฆใ„ใ‚‹ไบบใซใจใฃใฆใฏ

root@0230359a1b81:~/opt# python hello.py
Hello World!

ใ€Œ...ใ‚จใƒƒ๏ผŸใ€ใฟใŸใ„ใชใ€‚
ใŸใ ใใ‚Œใ ใ‘ใฎใ“ใจใซๅฌ‰ใ—ใ•ใฏใชใ‹ใชใ‹ใชใ„ใงใ™ใ‚ˆใญใจใ‚‚ๆ€ใ†ใ€‚

ๆŸ”่ปŸใซ่€ƒใˆใ‚‹

ใ€Œๆ•™ใˆใ‚‰ใ‚Œใ‚‹ๅดใฏใƒ—ใƒญใ‚ฐใƒฉใƒŸใƒณใ‚ฐใฎๅˆๅญฆ่€…ใงใ™ใŒใ€ๆ•™ใˆใ‚‹ๆ–นใ‚‚ๆ•™ใˆใ‚‹ๆดปๅ‹•ใฎๅˆๅญฆ่€…ใงใ™ใ‹ใ‚‰ใ€ๆŸ”่ปŸใซ่€ƒใˆใ‚‹ใฎใŒใ„ใ„ใจๆ€ใ„ใพใ™ใ€‚ใ€ใจ็ตๅŸŽๅ…ˆ็”ŸใŒไปฐใฃใฆใ„ใพใ™ใ€‚

ไธ€่ˆฌ่ซ–ใจใ—ใฆใฏใ€ใ€Œๅ‹•ใใ‚‚ใฎใ€ใ‚’ๆ—ฉใ‚ใซๆ็คบใ™ใ‚‹ๆ–นใŒใ„ใ„ใจๆ€ใ„ใพใ™ใ€‚

ใฉใ†ใ—ใฆใใ†ๆ€ใ†ใ‹ใจใ„ใ†ใจใ€็พๅฎŸ็š„ใซใ€Œๅ‹•ใใ‚‚ใฎใ€ใŒใ‚ใ‚‹ใจๆฅฝใ—ใ„ใ—ใ€่‡ชๅˆ†ใฏๆญฃใ—ใ„ใ“ใจใ‚’ใ‚„ใฃใฆใ„ใ‚‹ใจใ„ใ†ๅฎ‰ๅฟƒๆ„ŸใŒๅพ—ใ‚‰ใ‚Œใ‚‹ใ‹ใ‚‰ใงใ™ใ€‚ใ„ใฃใŸใ‚“ๅ‹•ใใƒ—ใƒญใ‚ฐใƒฉใƒ ใ‚’ๆ็คบใ—ใฆใ‹ใ‚‰ใ€ใใ‚Œใ‚’ๅฐ‘ใ—ใšใคๅค‰ใˆใฆๅ‹•ใใฎๅค‰ๅŒ–ใ‚’่ฆ‹ใฆใ‚‚ใ‚‰ใฃใŸใ‚Šใ€ใจใใซใฏๅค‰ใˆใฆๅ‹•ใ‹ใชใใชใฃใŸใ‚Šใ™ใ‚‹ใฎใ‚’่ฆ‹ใฆใ‚‚ใ‚‰ใ†ใฎใŒใ„ใ„ใงใ—ใ‚‡ใ†ใ€‚

ๅ‹•ใ‹ใชใใชใฃใฆใ‚‚็„ฆใ‚‹ๅฟ…่ฆใฏใชใ„ใ€‚ๆœ€ๅพŒใฎๅค‰ๆ›ดใ‚’ๅ…ƒใซๆˆปใ›ใฐใ€ใพใŸๅ‹•ใใ€‚ใจใ„ใ†ใ“ใจใ‚’ไฝ“ๆ„Ÿใ™ใ‚‹ใ“ใจใฏๅคงไบ‹ใงใ™ใ€‚

ใใ“ใงPython

pip install art

hello.py
import art

art.tprint("Hello World!")

art.tprint("What's up")

art.aprint("random") 

art.aprint("random") 

art.aprint("random") 

art.tprint("art",font="block",chr_ignore=True) 
root@0230359a1b81:~/opt# python hello.py
 _   _        _  _         __        __              _      _  _
| | | |  ___ | || |  ___   \ \      / /  ___   _ __ | |  __| || |
| |_| | / _ \| || | / _ \   \ \ /\ / /  / _ \ | '__|| | / _` || |
|  _  ||  __/| || || (_) |   \ V  V /  | (_) || |   | || (_| ||_|
|_| |_| \___||_||_| \___/     \_/\_/    \___/ |_|   |_| \__,_|(_)


__        __ _             _    _
\ \      / /| |__    __ _ | |_ ( ) ___   _   _  _ __
 \ \ /\ / / | '_ \  / _` || __||/ / __| | | | || '_ \
  \ V  V /  | | | || (_| || |_    \__ \ | |_| || |_) |
   \_/\_/   |_| |_| \__,_| \__|   |___/  \__,_|| .__/
                                               |_|

B-)
><((((>
{{{(>_<)}}}

 .----------------.  .----------------.  .----------------.
| .--------------. || .--------------. || .--------------. |
| |      __      | || |  _______     | || |  _________   | |
| |     /  \     | || | |_   __ \    | || | |  _   _  |  | |
| |    / /\ \    | || |   | |__) |   | || | |_/ | | \_|  | |
| |   / ____ \   | || |   |  __ /    | || |     | |      | |
| | _/ /    \ \_ | || |  _| |  \ \_  | || |    _| |_     | |
| ||____|  |____|| || | |____| |___| | || |   |_____|    | |
| |              | || |              | || |              | |
| '--------------' || '--------------' || '--------------' |
 '----------------'  '----------------'  '----------------'

... ใจใ€ใŸใฃใŸใ“ใ‚Œใ ใ‘ใชใ‚“ใ ใŒHello Worldใ‚‚ใ“ใฎใปใ†ใŒๅฐ‘ใ—ๅฌ‰ใ—ใ„ใ‚“ใ ใ‚ˆใชใ‚ใ€‚
ใ“ใ†ใ„ใ†ใƒฉใ‚คใƒ–ใƒฉใƒชใŒ็ฐกๅ˜ใซไฝฟใˆใ‚‹Pythonใ€ใ ใ‹ใ‚‰ๅˆๅญฆ่€…ใซๅฌ‰ใ—ใ„ใจใ“ใ‚ใชใฎใ‹ใ‚‚ใ—ใ‚Œใชใ„ใชใจๆ„Ÿใ˜ใŸใ€‚

ใฉใ“ใ‹ใงใ€Œใƒใ‚คใ‚ชใƒชใƒณใฏๅผพใ‘ใ‚‹ใ‚ˆใ†ใซใชใ‚‹ใพใงใŒ้›ฃใ—ใ™ใŽใฆๆŒซๆŠ˜ใ—ใกใ‚ƒใ†ใ€ใ€Œใƒ”ใ‚ขใƒŽใฏใใฎ็‚นใ€ๆŠผใ›ใฐ้ŸณใŒๅ‡บใ‚‹ใ€ใจใ„ใ†่ฉฑใ‚’่žใ„ใŸใ“ใจใŒใ‚ใ‚‹ใฎใงใใ‚Œใ ใ‚ˆใช็ญ‰ใ€‚

็คพๅ†…ใซใฆใƒ—ใƒญใ‚ฐใƒฉใƒŸใƒณใ‚ฐๅˆๆญฉใ‚’ใƒขใƒ–ใƒ—ใƒญใงๆฅฝใ—ใ‚€ไผšใŒๅง‹ใพใฃใŸใฎใงใ™ใŒใ€ art ใจใ‚„ใ‚‰ใŒๅ‡บใฆใใฆใ€ใธใˆใˆใจๆ€ใฃใŸใฎใงๆ›ธใใพใ—ใŸใ€‚ไปฅไธŠใงใ™๏ฝž

46
26
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
46
26

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?