Hello guys, I will talk about the pyfiglet module as much as I can in today's content.
Subject headings:
What is the Pyfiglet module?
Why do we use the Pyfiglet module?
Downloading the Pyfiglet module
Example Uses
What is the Pyfiglet module?
The Pyfiglet module allows you to write your text using unusual fonts.
Why do we use the Pyfiglet module?
ASCII text can be used to display many stylish text using the module pyfiglet. After installing this module, we can use it to check the font that can be used to display the result. In short, if you want your texts to look more stylish, you can use this module.
Let's download the module now ...
Kod:
pip install pyfiglet
Let's import our module into our project
Kod:
import pyfiglet
Example Uses:
Kod:
import pyfiglet
a= pyfiglet.figlet_format("Selam")
print(a)
Kod:
import pyfiglet
a= pyfiglet.figlet_format("Selam Merhaba", font = "slant" )
print(a)
Kod:
import pyfiglet
a= pyfiglet.figlet_format("S E L A M ", font = "3-d" )
print(a)
Kod:
import pyfiglet
a= pyfiglet.figlet_format("S E L A M ", font = "3x5" )
print(a)
Kod:
import pyfiglet
a= pyfiglet.figlet_format("S E L A M ", font = "5lineoblique" )
print(a)
Kod:
import pyfiglet
a= pyfiglet.figlet_format("M E R H A B A ", font = "alphabet" )
print(a)
Kod:
import pyfiglet
a= pyfiglet.figlet_format("THT", font = "banner3-D" )
print(a)
Kod:
import pyfiglet
a = pyfiglet.figlet_format("THT", font = "doh" )
print(a)
Kod:
import pyfiglet
a= pyfiglet.figlet_format("SLM", font = "isometric1" )
print(a)
Kod:
import pyfiglet
a= pyfiglet.figlet_format("THT", font = "letters" )
print(a)
Kod:
import pyfiglet
a= pyfiglet.figlet_format("T H T ", font = "alligator" )
print(a)
Kod:
import pyfiglet
a= pyfiglet.figlet_format("Deneme", font = "dotmatrix" )
print(a)
Kod:
import pyfiglet
a = pyfiglet.figlet_format("Turk Hack Team", font = "bubble" )
print(a)
Kod:
import pyfiglet
a= pyfiglet.figlet_format("Turk Hack Team", font = "bulbhead" )
print(a)
Kod:
import pyfiglet
a= pyfiglet.figlet_format("Turk Hack Team", font = "digital" )
print(a)
source: https://www.turkhackteam.org/python/1942430-python-pyfiglet-modulu.html
çevirmen/translator: Captainyarimca
Moderatör tarafında düzenlendi: