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:
|
while True:
|
||||||
yield start
|
yield start
|
||||||
start += step
|
start += step
|
||||||
|
|
Ładowanie…
Reference in New Issue