我如何将ASCII值的字符串转换为python中的原始字符/数字 [英] How do i convert a string of ascii values to there original character/number in python
本文介绍了我如何将ASCII值的字符串转换为python中的原始字符/数字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个带有数字的字符串,该字符串以前是使用编码器转换的,但是现在我尝试对它进行解码,以便在搜索时找到答案,但似乎没有任何答案 如果您有任何亲爱的方法,请告诉我
i have a string with numbers that i previously converted with my encoder but now i am trying to decode it ive searched around and no answers seem to work if you have any i dear how to do this then let me know
字符串= 91 39 65 97 66 98 67 99 32 49 50 51 39 93
string = 91 39 65 97 66 98 67 99 32 49 50 51 39 93
结果= ABCabc 123
outcome = ABCabc 123
推荐答案
outcome = "".join([your_decoder.decode(x) for x in string.split(" ")])
这篇关于我如何将ASCII值的字符串转换为python中的原始字符/数字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文