0
点赞
收藏
分享

微信扫一扫

Python中for循环的使用

Range:

range是一种数据类型,表示一个不可变的等差数列。

求米

九九乘法表

 

几种常用遍历:

# for c in string:遍历字符串

 

# for c in list:遍历列表

 

# for c in list:遍历元组

# for c in dict:遍历字典

   

举报

相关推荐

0 条评论