Метод строки isidentifier() поможет узнать, подходит ли данная строка в качестве имени объекта.
Вполне может заменить самостоятельно придуманную регулярку.
>>> 'some_name'.isidentifier()
True
Обычное имя переменной
>>> '私は手紙です'.isidentifier()
True
Юникод в качестве имени тоже доступен
>>> '1_name'.isidentifier()
False
Имя не может начинаться с цифры
>>> '੬_name'.isidentifier()
False
Включая все цифры юникода
>>> 'some name'.isidentifier()
False
Пробелы недопустимы
#basic
🚀🚀 Storming Profits in the Premium Group
🎯🎯#GUN/USDT has covered all the targets to give an amazing profit of 51% for all Premium Members
👁🗨Contact @futurechief to enter the premium group & make daily gains on Futures as well as Spot Market
🎯🎯Excellent 51% Profit on #GUN/USDT for all Premium Members
🚀🚀It has crossed all the targets
👁🗨Contact @futurechief to enter the premium group & make daily gains
🚀 Back to Back Huge Profits are made in the Premium Group
🎯🎯#GUN/USDT has covered all the target to give a Profit of 201% to all Premium Members
👁🗨Contact @futurechief to enter the Premium Futures & SPOT Group for daily gain
📈 TRADE RESULT – #GUN/USDT
✔️ Entry worked well
✔️ All targets were reached
✔️ Risk was managed properly
Result: +64% (with leverage)
How we trade:
• Plan before entering
• Fix targets and stop-loss
• No emotional trading
Premium means smart and disciplined trading.