我需要编写一些程序,直到程序中断时才能找到空间。无法正常工作的程序
我一直在问题。 我的代码:
x = raw_input("")
i = 0
corents = 0
while(x[i] != " "):
corennts +=i
i+=1
name = x[:corents]
print name
如果我将输入字符串 “HOLA amigas” 的回报 “HOLA”。 我需要的程序没有一些内置/或进口文件功能。
我只需要使用while/for循环来实现它。
这是一个错字。 http://meta.stackexchange.com/q/196985/232821 – 2013-09-14 18:30:13