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#