Python面试题

当前位置: 面试问题网 > Python面试题 > 用Python写一个for循环的例子

用Python写一个for循环的例子

Python面试题  手机阅读
Python的for循环可以循环所有序列(一个list或者string), 如:
   a = ['abc', 'bcde', 'efghi', 'hello word']
   for i in a:
   print (i)
   print (len(i))
   代码在Python3.0下调试通过

【用Python写一个for循环的例子】相关文章

1. 用Python写一个for循环的例子

2. Python面试题:如何用Python来发送邮件

3. 请用Python写一个获取用户输入数字,并根据数字大小输出不同信息的脚本

4. 如何用Python输出一个Fibonacci数列

5. Python面试题:Python里面如何生成随机数

6. Python面试题:Python是如何进行内存管理的

7. 如何用Python来进行查询和替换一个文本字符串

8. 用Python匹配HTML tag的时候,<.*>和<.*?>有什么区别

9. 触发器(trigger)的功能都有哪些?写出一个触发器的例子

10. Python里面如何拷贝一个对象

本文来源:https://www.mianshiwenti.com/a13512.html

点击展开全部

《用Python写一个for循环的例子》

将本文的Word文档下载到电脑,方便收藏和打印

推荐程度:

进入下载页面
上一篇:Python面试题集 下一篇:介绍一下Python下range()函数的用法

﹝用Python写一个for循环的例子﹞相关内容

「用Python写一个for循环的例子」相关专题

python
复制网址 收藏网址 分享到微信 分享到微博 分享到QQ

其它栏目

软件工程师面试题 软件测试面试题 网络管理员面试题 java面试题 .NET面试题 PHP面试题 C#面试题 C++面试题 Delphi面试题 Ruby面试题 Python面试题 Javascript面试题 android面试题 iOS面试题 jQuery面试题 Linux/Unix面试题 DBA面试题

也许您还喜欢