zoukankan      html  css  js  c++  java
  • Tuts 4 You注册解密(python)

    今天想看个博客,发现一个网站  https://forum.tuts4you.com/register/,注册的时候有个加密码类似于这个

    105 144 167 141 162 144 040 123 141 154 153 040 144 145 166 145 154 157 160 145 144 040 141 040 166 141 143 143 151 156 145 040 141 147 141 151 156 163 164 040 167 150 141 164 077

    还有这个

    127 150 157 040 144 145 166 145 154 157 160 145 144 040 164 150 145 040 107 141 151 141 040 124 150 145 157 162 171 077 

    搜了下是8进制的ascii码,用python写了个转换代码,再看了下别的语言写的,还是python简短

    人生苦短,多用python!

    mima = '127 150 157 040 144 145 166 145 154 157 160 145 144 040 164 150 145 040 107 141 151 141 040 124 150 145 157 162 171 077'
    
    m_ = mima.split(' ')
    result = ''
    for m in m_:
        result += (chr(int(m, 8)))
    print(result)

    'Who developed the Gaia Theory?'

    附加一个貌似有这种问题答案的帖子不是很全凑合看:https://blog.csdn.net/davidhsing/article/details/8300982

  • 相关阅读:
    02 re模块
    24 内置模块re 正则表达式
    pickle 模块
    json模块
    命名元组
    os模块
    24 内置函数 命名元组(namedtuple) ,os ,sys,序列化,pickle,json
    functools
    ccc 音乐播放
    ccc prefab
  • 原文地址:https://www.cnblogs.com/Robertzewen/p/10068394.html
Copyright © 2011-2022 走看看