Added main xinfo.py
This commit is contained in:
parent
142a811bf1
commit
d7fe66e1a5
18
xinfo.py
Normal file
18
xinfo.py
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
import platform
|
||||||
|
|
||||||
|
xascii = '''___ ___
|
||||||
|
\ \ / /
|
||||||
|
\ V /
|
||||||
|
> <
|
||||||
|
/ . \
|
||||||
|
/__/ \__\ '''
|
||||||
|
|
||||||
|
my_system = platform.uname()
|
||||||
|
|
||||||
|
print(xascii)
|
||||||
|
print("xinfo")
|
||||||
|
print("===============")
|
||||||
|
print(f"OS: {my_system.system}")
|
||||||
|
print(f"Host: {my_system.node}")
|
||||||
|
print(f"Kernel: {my_system.release}")
|
||||||
|
print(f"Architecture: {my_system.machine}")
|
Loading…
Reference in New Issue
Block a user