这是我目前的密码。你知道吗
def encryptMessage():
msg = "I came, I saw, I conquered"
i = 0
numChar = len(msg)
while i < numChar:
print msg[i:i+5]
i=i+5
它返回这个
I cam
e, I
saw,
I con
quere
d
下一部分是让程序打印每行的第一个字母,然后打印第二个字母,然后打印第三个字母,依此类推。应该是这样的。你知道吗
"IesIqd ,a u c wce aI,or m ne"
我真的想不出一个办法。任何帮助都将不胜感激。你知道吗
您将得到输出-:
您不需要导入任何包,只需简单地导入即可。你知道吗
我想这个练习的目的是教你如何在切片时使用“跨步”(又名step)选项。你知道吗
More explanation of the syntax here。剩下的就交给你了。你知道吗
我想会有用的
相关问题 更多 >
编程相关推荐