Tuts4you注册问题解码

只说一个,是八进制,下面是解码脚本
环境python3


1
2
3
4
5
6
7
8
9
10
11
12
13
# -*-coding:utf-8-*-
# Author: Akkuman
# Blog: hacktech.cn
# Tust4You的问题是八进制,所以八进制转ascii即可
# 解码问题
print("Please input the code what you see on register's page of Tust 4 You:")
encode_code = input()
encode_list = encode_code.split()
print("\nthe question is\n")
for i in encode_list:
i = int(i,8)
print(chr(i), end="")

!坚持技术分享,您的支持将鼓励我继续创作!