-->
当前位置:首页 > 题库 > 正文内容

程序填空题:循环输入

Luz4年前 (2021-08-19)题库993
循环获得用户输入,直至用户输入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( )


发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。