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, 98'
a = a.split(', ')
for each in a:
    print(chr(int(each)),end = '')

 

posted @ 2016-09-04 16:00  zzzzzzzzhu  阅读(361)  评论(0编辑  收藏  举报