def readinstring():
try:
word = str(input('Enter string'))
#raise Exception
except ValueError:
print('bhai string print karna hay')
#except Exception:
#print('more than 10 characters, thats wrong nibba')
else:
for letter in word:
print (letter)
return
readinstring()
这段代码表示,对于字符串中的每个字符,打印该字符
相关问题 更多 >
编程相关推荐