Метод строки isidentifier() поможет узнать, подходит ли данная строка в качестве имени объекта.
Вполне может заменить самостоятельно придуманную регулярку.
>>> 'some_name'.isidentifier()
True
Обычное имя переменной
>>> '私は手紙です'.isidentifier()
True
Юникод в качестве имени тоже доступен
>>> '1_name'.isidentifier()
False
Имя не может начинаться с цифры
>>> '੬_name'.isidentifier()
False
Включая все цифры юникода
>>> 'some name'.isidentifier()
False
Пробелы недопустимы
#basic
Bitcoin Surges Following Large Whale Activity
A Hyperliquid whale profited over $10M after opening positions shortly before the Bitcoin price surge to $90,000. Meanwhile, Donald Trump proposed a U.S. national crypto reserve including XRP, SOL, and ADA, raising concerns about insider trading due to the choice of assets. More details on these developments can be found here: Leviathan News and Wu Blockchain News.
#Bitcoin#Crypto#XRP#SOL#ADA#Trump#Whale#Profit#NationalReserve#InsiderTrading#Blockchain#Finance#Investing#MarketTrends#BlockchainNews#CryptoPolicy#DigitalAssets#Fintech#VC#AI
CZ Boosts Meme Project Liquidity
CZ to inject hundreds of BNB into winning projects from the Meme Liquidity Support Program on BNB Chain. This follows a $4.4 million liquidity initiative. _Link_.
Also, US judges dismiss SEC case against HEX founder Richard Heart, a significant win for crypto.
#CZ#BNB#Crypto#Meme#Liquidity#SEC#HEX#RichardHeart#Blockchain#BlockchainNews#Finance#Investment#CryptoNews#CryptoRegulations#Token#Startups#Binance#BNBChain#CryptoMarket#Web3