程序填空题:循环输入
循环获得用户输入,直至用户输入Y或者y字符退出程序。 当逐行输入下列数据: word apple x mother y 则屏幕上输出:(尾部也有空格) Word Apple X Mother 请补充完整下面程序。 ```python s=input( ) while : print(s.title(),end=" ") ``` 答案: 第1空:s!='Y' and s!='y' 第2空:s=input( )
-->
循环获得用户输入,直至用户输入Y或者y字符退出程序。 当逐行输入下列数据: word apple x mother y 则屏幕上输出:(尾部也有空格) Word Apple X Mother 请补充完整下面程序。 ```python s=input( ) while : print(s.title(),end=" ") ``` 答案: 第1空:s!='Y' and s!='y' 第2空:s=input( )