当前位置:网站首页>Python loop distinction (while loop and for loop)
Python loop distinction (while loop and for loop)
2020-11-08 08:04:00 【osc_mfth2zpa】
Applicability
while loop , For cycles with unknown number of cycles ;
for loop , For cycles with known number of cycles ;
Explain in detail
1、【 The number of cycles is basically known 】for Suitable for traversing data , The data traversal ends when there is no data ;
2、【 The number of cycles is basically unknown , End the loop by judging the inverse of the condition 】while Before circulation , We need to judge the conditions , It is relatively suitable for loops with complicated logic ;
remarks :while Circulation and for loop , Part of it can be switched between the two !!!
explain
1、 I wrote... For the first time CSDN Blog , I hope you all support !
2、 I am 6 Years of testing industry experience ,3 Years of black box testing experience ,3 Years of test development experience , He once worked in a large-scale artificial intelligence listed company in China , Proficient in performance testing , automated testing , The interface test , Artificial intelligence AI Voice test ;
3、 The following is my internal communication group , You are welcome to join us , Let's communicate together !

版权声明
本文为[osc_mfth2zpa]所创,转载请带上原文链接,感谢
边栏推荐
猜你喜欢
![[original] about the abnormal situation of high version poi autosizecolumn method](/img/3b/00bc81122d330c9d59909994e61027.jpg)
[original] about the abnormal situation of high version poi autosizecolumn method

swiper 窗口宽度变化,页面宽度高度变化 导致自动滑动 解决方案

1. In depth istio: how is sidecar auto injection realized?

M-end software product design considerations - Zhihu

双向LSTM在时间序列异常值检测的应用

Introduction to ucgui

ulab 1.0.0发布

Littlest JupyterHub| 02 使用nbgitpuller分发共享文件

IOS upload app store error: this action cannot be completed - 22421 solution

2020天翼智能生态博览会中国电信宣布5G SA正式规模商用
随机推荐
技术人员该如何接手一个复杂的系统?
PCR and PTS calculation and inverse operation in TS stream
The real-time display of CPU and memory utilization rate by Ubuntu
你的主机中的软件中止了一个已建立的连接。解决方法
sed之查找替换
Speed up your website with jsdelivr
Codeforce算法题 | 你能想出解法,让你的基友少氪金吗?
Interface
use Xunit.DependencyInjection Transformation test project
Application of bidirectional LSTM in outlier detection of time series
Is blazor ready to serve the enterprise?
面部识别:攻击类型和反欺骗技术
C language I blog assignment 03
Windows下子系统Ubuntu安装
More than 50 object detection datasets from different industries
Six key points of data science interview
Abnormal + Abstract
C / C + + Programming Notes: what are the advantages of C compared with other programming languages?
c# 表达式树(一)
C++基础知识篇:C++ 基本语法