mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-17 01:51:39 +09:00
24 lines
431 B
Python
24 lines
431 B
Python
import csv
|
|
|
|
for row in csv.reader(['one,two,three']):
|
|
[one, two, three] = row
|
|
assert one == 'one'
|
|
assert two == 'two'
|
|
assert three == 'three'
|
|
|
|
def f():
|
|
iter = ['one,two,three', 'four,five,six']
|
|
reader = csv.reader(iter)
|
|
|
|
[one,two,three] = next(reader)
|
|
[four,five,six] = next(reader)
|
|
|
|
assert one == 'one'
|
|
assert two == 'two'
|
|
assert three == 'three'
|
|
assert four == 'four'
|
|
assert five == 'five'
|
|
assert six == 'six'
|
|
|
|
f()
|