bitcoin:[BTC-ADDRESS]?amount=[SUM]
https://chart.googleapis.com/chart?chs=225x225&chld=L|2&cht=qr&chl=bitcoin:[BTC-ADDRESS]?amount=[SUM]%26label=[LABEL-TEXT]%26message=[MESSAGE-TEXT]
import schedule
import time
def job():
print("I'm working...")
schedule.every(10).minutes.do(job)
schedule.every().hour.do(job)
schedule.every().day.at("10:30").do(job)
schedule.every().monday.do(job)
schedule.every().wednesday.at("13:15").do(job)
schedule.every().minute.at(":17").do(job)
while True:
schedule.run_pending()
time.sleep(1)
/\u0621-\u064A/
import re
...
pattern = re.compile('\u0621-\u064A')
result = pattern.search('ваша проверяемая строка')
if result is not None:
print('есть арабские символы')
else:
print('арабских символов нет')
...
stringList = {}
with open("файл.txt") as f:
for line in f:
key, value = line.split()
stringList[key] = value
import base58 # Base58 decoding: https://github.com/keis/base58
def bech32_decode(bech):
charset = "qpzry9x8gf2tvdw0s3jn54khce6mua7l"
if ((any(ord(x) < 33 or ord(x) > 126 for x in bech)) or
(bech.lower() != bech and bech.upper() != bech)):
return False
bech = bech.lower()
pos = bech.rfind('1')
if pos < 1 or pos + 7 > len(bech) or len(bech) > 90:
return False
if not all(x in charset for x in bech[pos+1:]):
return False
hrp = bech[:pos]
data = [charset.find(x) for x in bech[pos+1:]]
if not bech32_verify_checksum(hrp, data):
return False
return True
def is_ltc_address(address):
if len(address) > 43 or len(address) < 26:
return False
if address[0] == "L": # Legacy Non-P2SH Address
return base58.b58decode_check(address)
elif address[0] == "3": # P2SH Address - Deprecated
return False
elif address[0] == "M": # P2SH Address
return base58.b58decode_check(address)
elif address[:4] == "ltc1": # P2WPKH Bech32 (Segwit)
return bech32_decode(address)
return False