#空格也是字符
def function(string):
s = "";
for n in range(len(string)):
if (n + 1) % 2 != 0:
s = s + string[n];
if len(string) == (n + 1):
print(s);
else:
s = s + string[n];
print(s);
s = "";
def main():
input_str = 'Hello World';
function(input_str);
main();
友情链接: