LoginSignup
5
3

More than 3 years have passed since last update.

Happy new year 2020!

Last updated at Posted at 2020-01-01

2020年も、#CiscoSE #DevNet #DevNetExpress #Catalyst #CiscoIOS 共々、どうぞよろしくお願い致します!

Guestshell

Cat9300-1#sh version | i 16.12
Cisco IOS XE Software, Version 16.12.01
Cisco IOS Software [Gibraltar], Catalyst L3 Switch Software (CAT9K_IOSXE), Version 16.12.1, RELEASE SOFTWARE (fc4)
BOOTLDR: System Bootstrap, Version 16.12.1r, RELEASE SOFTWARE (P)
*    1 41    C9300-24P          16.12.1           CAT9K_IOSXE           INSTALL
Cat9300-1#
Cat9300-1#guestshell 
[guestshell@guestshell ~]$ ls | grep print2020
print2020.py
[guestshell@guestshell ~]$ pwd
/home/guestshell
[guestshell@guestshell ~]$ 

コード

print2020.py
import sys

from termcolor import cprint
from pyfiglet import figlet_format

cprint(figlet_format('Happy New Year 2020!'), 'white', 'on_magenta')
cprint(figlet_format('#CiscoSE #DevNet'), 'white', 'on_blue')

実行例

Cat9300-1#guestshell run python print2020.py
 _   _                           _   _                __   __              
| | | | __ _ _ __  _ __  _   _  | \ | | _____      __ \ \ / /__  __ _ _ __ 
| |_| |/ _` | '_ \| '_ \| | | | |  \| |/ _ \ \ /\ / /  \ V / _ \/ _` | '__|
|  _  | (_| | |_) | |_) | |_| | | |\  |  __/\ V  V /    | |  __/ (_| | |   
|_| |_|\__,_| .__/| .__/ \__, | |_| \_|\___| \_/\_/     |_|\___|\__,_|_|   
            |_|   |_|    |___/                                             
 ____   ___ ____   ___  _ 
|___ \ / _ \___ \ / _ \| |
  __) | | | |__) | | | | |
 / __/| |_| / __/| |_| |_|
|_____|\___/_____|\___/(_)


   _  _    ____ _              ____  _____ 
 _| || |_ / ___(_)___  ___ ___/ ___|| ____|
|_  ..  _| |   | / __|/ __/ _ \___ \|  _|  
|_      _| |___| \__ \ (_| (_) |__) | |___ 
  |_||_|  \____|_|___/\___\___/____/|_____|

   _  _   ____             _   _      _   
 _| || |_|  _ \  _____   _| \ | | ___| |_ 
|_  ..  _| | | |/ _ \ \ / /  \| |/ _ \ __|
|_      _| |_| |  __/\ V /| |\  |  __/ |_ 
  |_||_| |____/ \___| \_/ |_| \_|\___|\__|



Cat9300-1#

実行例(キャプチャ)

SS 2020-01-01 20.34.35.png

5
3
0

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
5
3