编码 [英] Encoding
本文介绍了编码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
展开 | 选择 | Wrap | 行号
推荐答案
你好!!!
我我也是新手,但据我所知,你应该把所有''编码''
(''''= .....,''b''= ...等等在列表中,甚至更好地在字典中,然后让程序查找该列表或字典,并根据与您输入的字母对应的值组成一个字符串。
它应该是Python中的一个简单任务.....(如果你通过基础工作,当然......)
快乐编码,
Elias
Hello there!!!
I am a newbee also , but as far as i can tell , you should put all your ''encoding''
( ''a''=....., ''b''=... etc ) in a list or even better in a dictionary , and then have the program to look up to that list or dict , and compose a string from the values that correspond to the letters you''ve entered.
It is supposed to be a simple task in Python..... ( if you work your way through the basics , of course....)
Happy coding ,
Elias
这是代码。根据您的需要采用它....
Here is the code. Just adopt it to your needs....
展开 | 选择 | Wrap | 行号
我建议使用字符串模块。这是凯撒班次2的一个例子:
I recommend using the string module. Here''s an example for caesar shift 2:
展开 | 选择 | Wrap | 行号
这篇关于编码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文