"Ну и как же нам перекидывать строки ви числа?" спросите вы. Проверять каждый символ, очистив строку от лишних знаков и точек. Потом конвертить допустимые символы в числа и восстанавливать знак, дробную чусть и тд???
Самый быстрый способ это просто "попробовать" 😜
text = "-0.3"
try:
num = float(text)
except ValueError:
print('Dough!')
Всё остальное это уже парсинг и разбор символов для иных целей.
#basic
🪂Airdrop » LayerX ✅️
💲Reward: Worth of $3000 #Manta
💎Presents Ratings: ⭐️⭐️⭐️⭐️⭐️
👑Winners: all user participants
➡️Airdrop Page Join For Layer X
📚 How to Join Airdrop?
↪️ layer X.... U earn valuable point just by your daily logins
↪️ Follow Twitter page Retweet the Pinned Post & Tag 3 Friends. (Required Task)
✏️Notes:Make sure to complete all tasks to receive rewards.
ℹ️Distribution Date: Layer X we will be on 28th April 2024
💥In the last 24 hours, $MANTA surged to $3.333, marking an increase of over 18%.
With the booming MantaNetwork ecosystem, here is the guide for you on how to get your #Manta wallet on the #TokenPocket mobile wallet and Chrome Extension Wallet.
Full Guide👉https://help.tokenpocket.pro/en/wallet-operation/how-to-create-a-wallet/manta
【Details】https://twitter.com/TokenPocket_TP/status/1750418329746210831
【Powered By】Crypto Box