JavaScript to Python: Convert Code for URL Encoding
def reurl(a): b = '' c = csplit(a, 8).split(' ') for i in range(len(c) - 1): b = b + chr(int(c[i], 2) - 10) return b
import re
def csplit(a, b, c='\r\n'): b = int(b) or 76 if b < 1: return False return c.join(re.findall('.{0,%d}' % b, a))
原文地址: https://www.cveoy.top/t/topic/mANy 著作权归作者所有。请勿转载和采集!