Метод строки isidentifier() поможет узнать, подходит ли данная строка в качестве имени объекта.
Вполне может заменить самостоятельно придуманную регулярку.
>>> 'some_name'.isidentifier()
True
Обычное имя переменной
>>> '私は手紙です'.isidentifier()
True
Юникод в качестве имени тоже доступен
>>> '1_name'.isidentifier()
False
Имя не может начинаться с цифры
>>> '੬_name'.isidentifier()
False
Включая все цифры юникода
>>> 'some name'.isidentifier()
False
Пробелы недопустимы
#basic
📱 TCL Flip 4 5G: tosh davriga qaytishni istaganlar uchun
ℹ️ TCL kompaniyasi yangi Flip 4 5G telefonini taqdim etdi — klassik bukiluvchi dizayn va zamonaviy 5G texnologiyasi uyg‘unlashgan model.
⚙️ Asosiy xususiyatlar:
- Displeylar: 1.77" tashqi va 3.2" ichki ekranlar.
- Protsessor: Qualcomm Snapdragon 4s Gen 2.
- Xotira: 2 GB RAM, 32 GB ichki xotira (microSD orqali kengaytiriladi).
- Kamera: 5 MP orqa kamera, 720p video yozuvi.
- Batareya: 3000 mAh, 40 soatgacha suhbat va 2 kundan ortiq foydalanish.
- Operatsion tizim: KaiOS 4.0 — YouTube, Google Maps, WhatsApp kabi ilovalar bilan.
- Aloqa: 5G, 4G LTE, Wi-Fi, Bluetooth 5.0, USB-C, 3.5 mm audio jack.
✅ Bu model soddalikni qadrlovchilar, katta yoshdagilar uchun qulay tanlov bo‘lishi mumkin.
💵 Narxi AQShda $79.99 bilan sotuvga chiqarilgan.
➡️#tcl | Birinchi raqamli IT-Blog
https://wiki.python.org/moin/TkInter
#Tkinter is Python's de-facto standard GUI (Graphical User Interface) package. It is a thin #object-oriented layer on top of #Tcl/Tk.
Tkinter is not the only GuiProgramming toolkit for Python. It is however the most commonly used one. CameronLaird calls the yearly decision to keep TkInter "one of the minor traditions of the Python world."
The Tkinter wiki: http://tkinter.unpythonic.net/wiki/