Метод строки isidentifier() поможет узнать, подходит ли данная строка в качестве имени объекта.
Вполне может заменить самостоятельно придуманную регулярку.
>>> 'some_name'.isidentifier()
True
Обычное имя переменной
>>> '私は手紙です'.isidentifier()
True
Юникод в качестве имени тоже доступен
>>> '1_name'.isidentifier()
False
Имя не может начинаться с цифры
>>> '੬_name'.isidentifier()
False
Включая все цифры юникода
>>> 'some name'.isidentifier()
False
Пробелы недопустимы
#basic
😄What
➖➖➖➖➖➖
🔘What can be used in questions to ask for information.
What time do you usually wake up?What time do you usually wake up?
🔘We can also use what in questions to show that we are surprised.
What?! You wake up at noon?What?! You wake up at noon?
🔘We can use what on its own to ask someone to say something again.
🔜I don't like chocolate. What? I don't really like chocolate.
🔘What can introduce an opinion.
🔜What a cute puppy!
#What👨🏫@America
➖➖➖➖➖➖➖➖➖➖➖➖
🆕 Crypto News @Money
😁 Crypto Game @Egame
🇺🇸 US News @America
🇯🇵 Japan News @Japan
🇦🇪 UAE News @Dubai
▶️ Popular Movies @Videos
😜 Best Funny Video @Funnys
*This world indeed is nothing, just last weekend we were enjoying with you in all occasions we attended.. You even promised to hung around with us till January only for you to leave us unannounced without even saying goodbye to me.. #What a great lost!! 😭😭*
*I love you but God loves you more.. #RIP My December Salary*
😭😭😭😭😭😭😭😭😭
@jokearoundtheglobe
Q-q起q名m风f波b- 起名风波 Le prénom (2012)
直达链接:https://pan.quark.cn/s/42406d845ae2
#起名风波#Le prénom
#名字#What's in a Name
链接:https://link3.cc/sf_com
#电影#喜剧#其他#10年代