Python next()用法及代碼示例. ... next() # using default while (1): val = next(list1,'end') if val == 'end': print ('list end') break else : print (val).
確定! 回上一頁