1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【python】artライブラリを使ってみた

Last updated at Posted at 2024-03-07

目次

1.インストール
2.使い方
3.フォント
4.まとめ

1.インストール

ライブラリをインストールします。

pip install art

2.使い方

以下のコマンドで実行します。

from art import *

tprint('python')

実行結果

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

3.フォント

フォントを色々と使用できます。例えば、

from art import *

tprint('python', '3x5')

実行結果

         #  #
### # # ### ### ### ##
# # ###  #  # # # # # #
###   #  ## # # ### # #
#   ###

他にも、

from art import *

tprint('python', '3d')

実行結果

                    **   **
 ******   **   **  /**  /**
/**///** //** **  ******/**       ******  *******
/**  /**  //***  ///**/ /******  **////**//**///**
/******    /**     /**  /**///**/**   /** /**  /**
/**///     **      /**  /**  /**/**   /** /**  /**
/**       **       //** /**  /**//******  ***  /**
//       //         //  //   //  //////  ///   //

4.まとめ

クラシックなアスキーアートですね。ではでは。

1
0
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?