kopia lustrzana https://github.com/micropython/micropython-lib
itertools: count() has start arg default to 0.
rodzic
c73650a250
commit
35ceeadc60
|
@ -1,4 +1,4 @@
|
|||
def count(start, step=1):
|
||||
def count(start=0, step=1):
|
||||
while True:
|
||||
yield start
|
||||
start += step
|
||||
|
|
Ładowanie…
Reference in New Issue