python-tabulate
On linux:
isntall tabulate => pip install tabulate
current user => pip install tabulate --user
On Windows:
set TABULATE_INSTALL=lib-only
pip install tabulate
Library usages:
>>> from tabulate import tabulate
>>> table = [["Sun",696000,1989100000],["Earth",6371,5973.6],
... ["Moon",1737,73.5],["Mars",3390,641.85]]
>>> print(tabulate(table))
----— -----—— -------------
Sun 696000 1.9891e+09
Earth 6371 5973.6
Moon 1737 73.5
Mars 3390 641.85
----—- -----—- -------------
Quyidagi jadval ma'lumotlar turlari qo'llab-quvvatlanadi:
* ro'yxatlar ro'yxati yoki iterable boshqa iterable
* ro'yxat yoki diktlarning boshqa takrorlanishi (ustunlar sifatida kalitlar)
* takrorlanadiganlar dikti (ustunlar sifatida kalitlar)
* ma'lumotlar sinflari ro'yxati (faqat Python 3.7+, ustunlar sifatida maydon nomlari)
* ikki o'lchovli NumPy massivi
* NumPy yozuv massivlari (ustunlar sifatida nomlar)
* pandas.DataFrame
Headers
The second optional argument named headers defines a list of column headers to be used:
>>> print(tabulate(table, headers=["Planet","R (km)", "mass (x 10^29 kg)"]))
Planet R (km) mass (x 10^29 kg)
-------- -------- -------------------
Sun 696000 1.9891e+09
Earth 6371 5973.6
Moon 1737 73.5
Mars 3390 641.85
If headers="firstrow", then the first row of data is used:
>>> print(tabulate([["Name","Age"],["Alice",24],["Bob",19]],
... headers="firstrow"))
Name Age
------ -----
Alice 24
Bob 19
If headers="keys", then the keys of a dictionary/dataframe, or column indices are used. It also works for NumPy record arrays and lists of dictionaries or named tuples:
>>> print(tabulate({"Name": ["Alice", "Bob"],
... "Age": [24, 19]}, headers="keys"))
Age Name
----- ------
24 Alice
19 Bob
#module
On linux:
isntall tabulate => pip install tabulate
current user => pip install tabulate --user
On Windows:
set TABULATE_INSTALL=lib-only
pip install tabulate
Library usages:
>>> from tabulate import tabulate
>>> table = [["Sun",696000,1989100000],["Earth",6371,5973.6],
... ["Moon",1737,73.5],["Mars",3390,641.85]]
>>> print(tabulate(table))
----— -----—— -------------
Sun 696000 1.9891e+09
Earth 6371 5973.6
Moon 1737 73.5
Mars 3390 641.85
----—- -----—- -------------
Quyidagi jadval ma'lumotlar turlari qo'llab-quvvatlanadi:
* ro'yxatlar ro'yxati yoki iterable boshqa iterable
* ro'yxat yoki diktlarning boshqa takrorlanishi (ustunlar sifatida kalitlar)
* takrorlanadiganlar dikti (ustunlar sifatida kalitlar)
* ma'lumotlar sinflari ro'yxati (faqat Python 3.7+, ustunlar sifatida maydon nomlari)
* ikki o'lchovli NumPy massivi
* NumPy yozuv massivlari (ustunlar sifatida nomlar)
* pandas.DataFrame
Headers
The second optional argument named headers defines a list of column headers to be used:
>>> print(tabulate(table, headers=["Planet","R (km)", "mass (x 10^29 kg)"]))
Planet R (km) mass (x 10^29 kg)
-------- -------- -------------------
Sun 696000 1.9891e+09
Earth 6371 5973.6
Moon 1737 73.5
Mars 3390 641.85
If headers="firstrow", then the first row of data is used:
>>> print(tabulate([["Name","Age"],["Alice",24],["Bob",19]],
... headers="firstrow"))
Name Age
------ -----
Alice 24
Bob 19
If headers="keys", then the keys of a dictionary/dataframe, or column indices are used. It also works for NumPy record arrays and lists of dictionaries or named tuples:
>>> print(tabulate({"Name": ["Alice", "Bob"],
... "Age": [24, 19]}, headers="keys"))
Age Name
----- ------
24 Alice
19 Bob
#module
image_2023-09-17_13-18-16.png
151.1 KB
#json
o'qib qaytadan yozish
o'qib qaytadan yozish
Agar QtDesigner boʻlmasa oʻrnatish:
Uni terminaldan ochish uchun:
Bularning hammasi terminal uchun !!!
sudo apt-get install qttools5-dev-toolsUni terminaldan ochish uchun:
designerBularning hammasi terminal uchun !!!
Forwarded from Naxalov | AI Blog 🔥
O‘z faoliyatini garajda boshlagan startaplar.
1. Hewlett-Packard (1939)
2. Apple (1976)
3. Amazon (1994)
4. Google (1998)
@naxalov
1. Hewlett-Packard (1939)
2. Apple (1976)
3. Amazon (1994)
4. Google (1998)
@naxalov
Forwarded from Naxalov | AI Blog 🔥
Ilk start-up deganda birinchi bo‘lib xayolimga HP( Hewlett-Packard ) keldi lekin hech ichdan rasmini ko‘rmagan ekanman.
Hewlett-Packard (HP) 1939 yilda ikki do‘st Bill Hewlett va Dave Packard tomonidan Kaliforniyaning Palo Alto shahridagi garajda asos solingan.
@naxalov
Hewlett-Packard (HP) 1939 yilda ikki do‘st Bill Hewlett va Dave Packard tomonidan Kaliforniyaning Palo Alto shahridagi garajda asos solingan.
@naxalov
import sys#pyqt
from PyQt5.QtWidgets import QApplication, QWidget
from PyQt5 import uic
class AppDemo(QWidget):
def __init__(self):
super().__init__()
uic.loadUi('app.ui', self)
if __name__ == '__main__':
app = QApplication(sys.argv)
demo = AppDemo()
demo.show()
try:
sys.exit(app.exec_())
except SystemExit:
print('Closing Window...')
Tohirjon Odilov | Blog
import sys from PyQt5.QtWidgets import QApplication, QWidget from PyQt5 import uic class AppDemo(QWidget): def __init__(self): super().__init__() uic.loadUi('app.ui', self) if __name__ == '__main__': app = QApplication(sys.argv) demo = AppDemo()…
qtdesigner'dan chiqgan loyihani ishga tushirish uchun
app.uio'rniga file nomi kiritiladi
#learn
Useful links:
C# 101 for Beginners
Learn C# Collection
ASP.NET Core - Begginer
ASP.NET Core 101 for Beginners
Build web apps with ASP.NET Core for beginners
Azure Static Web Apps
Build web applications with Blazor
Create web apps and services with ASP.NET Core, minimal API, and .NET 6
Migrate ASP.NET Apps to Azure
C# va .Net uchun
Useful links:
C# 101 for Beginners
Learn C# Collection
ASP.NET Core - Begginer
ASP.NET Core 101 for Beginners
Build web apps with ASP.NET Core for beginners
Azure Static Web Apps
Build web applications with Blazor
Create web apps and services with ASP.NET Core, minimal API, and .NET 6
Migrate ASP.NET Apps to Azure
C# va .Net uchun
Forwarded from Tohirjon Odilov
wallpaperaccess_com.zip
13.7 MB
Forwarded from KOMPYUTER AKADEMIYASI
Wallpapers 1 (@kompyuter_akademiyasi).rar
72.8 MB
Рабочий стол uchun rasmlar 1
Wallpapers 2 (@kompyuter_akademiyasi).rar
71.9 MB
Рабочий стол uchun rasmlar 2
Wallpapers 3 (@kompyuter_akademiyasi).rar
120.7 MB
Рабочий стол uchun rasmlar 3
Wallpapers 4 (@kompyuter_akademiyasi).rar
182 MB
Рабочий стол uchun rasmlar 4