国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

WingIDE 激活方式

2019-11-06 06:33:36
字體:
來源:轉載
供稿:網友

激活代碼CalcActivationCode.py

import shaimport stringBASE2 = '01'BASE10 = '0123456789'BASE16 = '0123456789ABCDEF'BASE30 = '123456789ABCDEFGHJKLMNPQRTVWXY'BASE36 = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'BASE62 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz'BASEMAX = string.PRintabledef BaseConvert(number, fromdigits, todigits, ignore_negative = True):    """ converts a "number" between two bases of arbitrary digits        The input number is assumed to be a string of digits from the    fromdigits string (which is in order of smallest to largest    digit). The return value is a string of elements from todigits    (ordered in the same way). The input and output bases are    determined from the lengths of the digit strings. Negative     signs are passed through.        decimal to binary    >>> baseconvert(555,BASE10,BASE2)    '1000101011'        binary to decimal    >>> baseconvert('1000101011',BASE2,BASE10)    '555'        integer interpreted as binary and converted to decimal (!)    >>> baseconvert(1000101011,BASE2,BASE10)    '555'        base10 to base4    >>> baseconvert(99,BASE10,"0123")    '1203'        base4 to base5 (with alphabetic digits)    >>> baseconvert(1203,"0123","abcde")    'dee'        base5, alpha digits back to base 10    >>> baseconvert('dee',"abcde",BASE10)    '99'        decimal to a base that uses A-Z0-9a-z for its digits    >>> baseconvert(257938572394L,BASE10,BASE62)    'E78Lxik'        ..convert back    >>> baseconvert('E78Lxik',BASE62,BASE10)    '257938572394'        binary to a base with Words for digits (the function cannot convert this back)    >>> baseconvert('1101',BASE2,('Zero','One'))    'OneOneZeroOne'        """    if not ignore_negative and str(number)[0] == '-':        number = str(number)[1:]        neg = 1    else:        neg = 0    x = long(0)    for digit in str(number):        x = x * len(fromdigits) + fromdigits.index(digit)    res = ''    while x > 0:        digit = x % len(todigits)        res = todigits[digit] + res        x /= len(todigits)    if neg:        res = '-' + res    return resdef SHAToBase30(digest):    """Convert from a hexdigest form SHA hash into a more compact and    ergonomic BASE30 representation.  This results in a 17 'digit'     number."""    tdigest = ''.join([ c for i, c in enumerate(digest) if i / 2 * 2 == i ])    result = BaseConvert(tdigest, BASE16, BASE30)    while len(result) < 17:        result = '1' + result    return resultdef AddHyphens(code):    """Insert hyphens into given license id or activation request to    make it easier to read"""    return code[:5] + '-' + code[5:10] + '-' + code[10:15] + '-' + code[15:]LicenseID='TNX1D-JKH7A-NYP9Q-25EJ8'#Copy the Request Code from the dialogRequestCode='RW52L-91NWW-PXHW2-E1JDD'hasher = sha.new()hasher.update(RequestCode)hasher.update(LicenseID)digest = hasher.hexdigest().upper()lichash = RequestCode[:3] + SHAToBase30(digest)lichash=AddHyphens(lichash)#Calculate the Activation Codedata=[7,123,23,87]tmp=0realcode=''for i in data:    for j in lichash:        tmp=(tmp*i+ord(j))&0xFFFFF    realcode+=format(tmp,'=05X')    tmp=0act30=BaseConvert(realcode,BASE16,BASE30)while len(act30) < 17:    act30 = '1' + act30act30='AXX'+act30act30=AddHyphens(act30)print "The Activation Code is: "+act30安裝WingIDE5.0  Python2.7,將python加入環境變量

輸入CN123-12345-12345-12345獲取requestCode碼,修改requestCode運行填入第二


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 开化县| 牡丹江市| 瓦房店市| 安吉县| 无为县| 迁安市| 马鞍山市| 长白| 军事| 寿宁县| 依安县| 简阳市| 河曲县| 嫩江县| 丹东市| 互助| 健康| 山西省| 乌兰浩特市| 廉江市| 镶黄旗| 阆中市| 肇东市| 汤阴县| 阿拉善盟| 工布江达县| 铁力市| 永善县| 房山区| 高唐县| 泸溪县| 连州市| 水城县| 名山县| 赫章县| 邯郸县| 县级市| 稻城县| 通化县| 仙游县| 漳平市|