首页 > 代码库 > WeChall_Training: ASCII (Training, Encoding)

WeChall_Training: ASCII (Training, Encoding)

In a computer, you can only work with numbers.
In this challenge you have to decode the following message, which is in ASCII.

84, 104, 101, 32, 115, 111, 108, 117, 116, 105, 111, 110, 32, 105, 115, 58, 32, 98, 111, 108, 102, 111, 110, 111, 105, 97, 101, 102, 98

Useful link: http://asciitable.com

 

解题:

简单ascii码转换。

 

a = 84, 104, 101, 32, 115, 111, 108, 117, 116, 105, 111, 110, 32, 105, 115, 58, 32, 98, 111, 108, 102, 111, 110, 111, 105, 97, 101, 102, 98a = a.split(, )for each in a:    print(chr(int(each)),end = ‘‘)

 

WeChall_Training: ASCII (Training, Encoding)