Метод строки isidentifier() поможет узнать, подходит ли данная строка в качестве имени объекта.
Вполне может заменить самостоятельно придуманную регулярку.
>>> 'some_name'.isidentifier()
True
Обычное имя переменной
>>> '私は手紙です'.isidentifier()
True
Юникод в качестве имени тоже доступен
>>> '1_name'.isidentifier()
False
Имя не может начинаться с цифры
>>> '੬_name'.isidentifier()
False
Включая все цифры юникода
>>> 'some name'.isidentifier()
False
Пробелы недопустимы
#basic
⚡️Catizen Announcement: COC Wipe Test Now Live!
#Diamonds#COC
The Catizen Announcement channel reveals the launch of the COC Wipe Test. Participants can try it first and earn 2x Diamonds for every USD spent during the test, redeemable at the official launch.
Source: link
@tonlines
🌎 A layer of diamond rain may fall deep within Neptune and Uranus! Under immense pressure, methane breaks apart, causing carbon atoms to form glittering diamond crystals that drift towards the core. ✨
#planets⚡#diamonds⚡#methane
👉subscribe Interesting Planet
🎈Hot Game This Week🎈
🐲Dusk of Dragons: Survivor🔥🔥🔥
📌Developed by 🔗Core Games
🚀#June 19 | Countdown!!!
From #diamonds to dragon #coins, the Dusk of Dragons codes can help boost your inventory, increase your levelups, and make your adventure across Libida even more thrilling!!!
The 100 diamonds and 500 dragon coins are yours after redeeming this code: 👇👇👇
🎁【 APKPURE 】🎁[Valid for Limited Time!]
*Expires on 6/30‼️
🕹️Get Access to Dusk of Dragons June 30 Update
Add @APKFreeDownloader_Bot to get any apk you want.