Метод строки isidentifier() поможет узнать, подходит ли данная строка в качестве имени объекта.
Вполне может заменить самостоятельно придуманную регулярку.
>>> 'some_name'.isidentifier()
True
Обычное имя переменной
>>> '私は手紙です'.isidentifier()
True
Юникод в качестве имени тоже доступен
>>> '1_name'.isidentifier()
False
Имя не может начинаться с цифры
>>> '੬_name'.isidentifier()
False
Включая все цифры юникода
>>> 'some name'.isidentifier()
False
Пробелы недопустимы
#basic
In a situation where the market is not in a good condition, #TRXUSDT's trend is still upward.
After reaching the bottom of the channel and the support level of $0.1100-0.1050, the price started to grow and first broke the small dynamic resistance.
According to the general situation of this currency and the registered candles, it can be expected that the price will grow again up to the ceiling of the channel.
Signal for a futures trade
#TRXUSDT.P
📌 Logged into SHORT
Entry: ±$0.08521
Take profit: $0.084; $0.082; $0.0805
Stop loss: $0.0867
The price broke through the trend support and left the bottom. Also against the downside is a “flat-bottomed triangle” formation. I expect the decline to continue.