开发者社区 问答 正文

元组中通过while循环获取元素的示例代码是什么?

元组中通过while循环获取元素的示例代码是什么?

展开
收起
游客qzzytmszf3zhq 2021-10-31 15:46:21 564 分享 版权
1 条回答
写回答
取消 提交回答
  • its = ("Python",'Java',"Android",'IOS') index = 0 while index < len(its): print(its[index]) index += 1

    2021-10-31 15:46:39
    赞同 展开评论
问答地址: