Python学习笔记中如何实现循环引用?
- 内容介绍
- 文章标签
- 相关推荐
本文共计376个文字,预计阅读时间需要2分钟。
循环使用while语句,注意缩进。
循环1:while True: word=input('please enter a word:') if not word: break print('The word is:', word)
循环2:while True: word=input('please enter a word:') if not word: break print('The word is:', word)
循环使用一、while注意缩进。循环1whileTrue:wordinput(‘pleaseenteraword:‘)ifnotword:breakprint(‘Thewor循环使用
一、while 注意缩进。
本文共计376个文字,预计阅读时间需要2分钟。
循环使用while语句,注意缩进。
循环1:while True: word=input('please enter a word:') if not word: break print('The word is:', word)
循环2:while True: word=input('please enter a word:') if not word: break print('The word is:', word)
循环使用一、while注意缩进。循环1whileTrue:wordinput(‘pleaseenteraword:‘)ifnotword:breakprint(‘Thewor循环使用
一、while 注意缩进。

