本函数是返回序列seq的反向訪问的迭代子。
样例:
#reversed() for i in reversed([2, 3, 4, 5]): print(i, end = ',')
结果输出例如以下:
5,4,3,2,
本函数是返回序列seq的反向訪问的迭代子。
样例:
#reversed() for i in reversed([2, 3, 4, 5]): print(i, end = ',')
结果输出例如以下:
5,4,3,2,
了解了解
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M