Метод строки isidentifier() поможет узнать, подходит ли данная строка в качестве имени объекта.
Вполне может заменить самостоятельно придуманную регулярку.
>>> 'some_name'.isidentifier()
True
Обычное имя переменной
>>> '私は手紙です'.isidentifier()
True
Юникод в качестве имени тоже доступен
>>> '1_name'.isidentifier()
False
Имя не может начинаться с цифры
>>> '੬_name'.isidentifier()
False
Включая все цифры юникода
>>> 'some name'.isidentifier()
False
Пробелы недопустимы
#basic
✨AI Tools for Sending Message
Unlock AI Power in Your Chat! Just type your message and use the AI tools directly within this chat. Get instant summaries, rewrites, and more! Let's get started!
✍️Summarize
📝Rewrite
😉Add Emoji to the Text
🔎Explaining Subject
❤️Graph Messenger 11.20.0
🗓Added from: June 2, 2025
#features#ai#ai_tools#chat
#summarize#rewrite
@GraphMessenger
@GraphMessengerTips
#powershell#ai#bloatware#bloatware_removal#copilot#debloat#generative_ai#image_creator#optimizer#powershell#privacy#recall#rewrite#security#windows
This PowerShell script removes all AI features from Windows 11 (like Copilot, Recall, AI in Paint/Notepad/Edge), disables registry keys, deletes packages/files, prevents reinstalls, and offers classic app replacements with backup/revert options. Run it as admin via UI or commands for a cleaner system. You gain better privacy, security, faster performance, and no unwanted bloat—full control over your PC.
https://github.com/zoicware/RemoveWindowsAI