当前位置:网站首页>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)
边栏推荐
- 个人力扣题目分类记录
- 寄存器地址名映射
- What is the rating of Huishang futures company? Is it safe to open an account? I want to open an account, OK?
- Simulation volume leetcode [general] 1706 Where does the ball meet
- Screen automatically generates database documents
- Full link voltage test of the e-commerce campaign Guide
- Pytest+request+allure+excel interface automatic construction from 0 to 1 [five nails / flying Book notice]
- How to pass the PMP Exam in a short time?
- Postman data driven
- 串口实验——简单数据收发
猜你喜欢

2022-06-30 unity core 8 - model import

Cesium does not support 4490 problem solution and cesium modified source code packaging scheme

Expérience de port série - simple réception et réception de données

Pycharm importing third-party libraries

NVIC interrupt priority management

Implementation of corner badge of Youmeng message push

PMP examination experience sharing

端口复用和重映像

2022-07-06 Unity核心9——3D动画

JVM garbage collection detailed learning notes (II)
随机推荐
PMP certificate preparation experience sharing
Cesium does not support 4490 problem solution and cesium modified source code packaging scheme
Output all composite numbers between 6 and 1000
Locust performance test 4 (custom load Policy)
Two schemes of unit test
External interrupt to realize key experiment
LED模拟与数字调光
Original collection of hardware bear (updated on June 2022)
Several methods of calculating the average value of two numbers
【istio简介、架构、组件】
Entity of cesium data visualization (Part 1)
Simulation volume leetcode [general] 1567 Length of the longest subarray whose product is a positive number
Postman interface test (II. Set global variables \ sets)
Run can start normally, and debug doesn't start or report an error, which seems to be stuck
STM32串口寄存器库函数配置方法
C语言指针(习题篇)
2022-06-30 unity core 8 - model import
C语言指针(下篇)
Simulation volume leetcode [general] 1609 Parity tree
Test Engineer Interview Questions 2022