Метод строки isidentifier() поможет узнать, подходит ли данная строка в качестве имени объекта.
Вполне может заменить самостоятельно придуманную регулярку.
>>> 'some_name'.isidentifier()
True
Обычное имя переменной
>>> '私は手紙です'.isidentifier()
True
Юникод в качестве имени тоже доступен
>>> '1_name'.isidentifier()
False
Имя не может начинаться с цифры
>>> '੬_name'.isidentifier()
False
Включая все цифры юникода
>>> 'some name'.isidentifier()
False
Пробелы недопустимы
#basic
New Airdrop: Harcox Finance Round 2
Reward: 10,000 $HF tokens
News: Coinquora, Investing
Distribution date: 3 March, 2022
🔗Airdrop Link:Airdrop page
- Complete all tasks of the airdrop
- Submit your BSC wallet address
- The airdrop for all participants
- Per valid referrals get 100 #HF tokens
⚠️PleaseRemember: Only participate in completely free airdrops, never spend any penny for airdrop tokens.
📹 YouTube Video about how to participate in the Harcox Finance Airdrop.
✅Done✅Done✅Done✅
New Airdrop: Harcox Finance
Reward: 10,000 $HF tokens
News: Coinquora, Investing
Distribution date: 3 March, 2022
🔗Airdrop Link:Airdrop page
- Complete all tasks of the airdrop
- Submit your BSC wallet address
- The airdrop for all participants
- Per valid referrals get 100 #HF tokens
⚠️PleaseRemember: Only participate in completely free airdrops, never spend any penny for airdrop tokens.
📹 YouTube Video about how to participate in the Harcox Finance Airdrop.
✅Done✅Done✅Done✅