如何在python中将一个列表解码回chrs

问题描述

所以我最近偶然发现了一个用户的个人资料 - https://stackoverflow.com/users/13717976/hamburger?tab=profile 并且有一个关于如何获得他的联系方式的小测验。我尝试这样做,但我被困在代码的这一部分-

my_contact = [71,77,65,73,76,58,32,117,109,97,115,114,121,110,64,103,105,108,46,99,111,59,67,116,100,101,104,33,10,107,112,47,119,98,63,118,61,81,52,57,87,88,81]

# HINT: It's in ord format convert these single numbers into characters using the chr function then save the chrs in a list then using the join function join them together to form a piece of text!

def decode(ord_list):
    chr(ord_list)

print(decode(my_contact))

它给了我一个错误,需要整数类型我不知道这意味着什么,因为我是 python 的新手。任何进一步的建议、帮助、评论、答案都将被接受!

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)