当前位置:网站首页>The use of recycling ideas
The use of recycling ideas
2022-07-07 09:15:00 【Is winter coming】
I wrote a cycle today , Ridiculed by colleagues , recorded , Who will write like this in the future , Hey .
I wrote it :( Some are not written )
Ideas : Always cycle value , If the condition is met, the cycle is terminated
while Ture:
print(a)
if a == 3:
break
Grammatically speaking , There is no problem , But never do that
The right way of thinking : Cycle only when conditions are met
such as :
while a != 3:
print(a)
边栏推荐
- 面板显示技术:LCD与OLED
- Pytest+request+allure+excel interface automatic construction from 0 to 1 [five nails / flying Book notice]
- 徽商期货公司评级是多少?开户安全吗?我想开户,可以吗?
- Locust performance test 5 (analysis)
- 【SVN】SVN是什么?怎么使用?
- Run can start normally, and debug doesn't start or report an error, which seems to be stuck
- PMP Exam Preparation experience, seek common ground while reserving differences, and successfully pass the exam
- OpenGL frame buffer
- PMP Exam details after the release of the new exam outline
- MySql数据库-索引-学习笔记
猜你喜欢
Entity of cesium data visualization (Part 1)
Troublesome problem of image resizing when using typora to edit markdown to upload CSDN
C language pointer (special article)
Reflections on the way of enterprise IT architecture transformation (Alibaba's China Taiwan strategic thought and architecture practice)
MySql数据库-事务-学习笔记
Skill review of test engineer before interview
Postman interface test (I. installation and use)
How to pass the PMP Exam in a short time?
Synchronized underlying principle, volatile keyword analysis
MySql数据库-索引-学习笔记
随机推荐
2020 year end summary
Cesium does not support 4490 problem solution and cesium modified source code packaging scheme
硬件大熊原创合集(2022/05更新)
Confitest of fixture py
Locust performance test 5 (analysis)
Implementation of corner badge of Youmeng message push
Original collection of hardware bear (updated on May 2022)
MySQL common statements
Port occupation troubleshooting
C language pointer (Part 1)
Interview question: general layout and wiring principles of high-speed PCB
Troublesome problem of image resizing when using typora to edit markdown to upload CSDN
What are the conditions for applying for NPDP?
Postman setting environment variables
Panel display technology: LCD and OLED
Idea development environment installation
Serializer & modelserializer of DRF serialization and deserialization
Interpretation of MySQL optimization principle
OpenGL frame buffer
Entity of cesium data visualization (Part 1)