Skip to content

Instantly share code, notes, and snippets.

@Everfighting
Created May 4, 2017 05:35
Show Gist options
  • Save Everfighting/e2d1f9cca9d4309007961e8ba8d21bb5 to your computer and use it in GitHub Desktop.
Save Everfighting/e2d1f9cca9d4309007961e8ba8d21bb5 to your computer and use it in GitHub Desktop.
itertools.chain的用法
import itertools
for i in itertools.chain([1, 2, 3], ['a', 'b', 'c']):
print(i,end=" ")
# 1 2 3 a b c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment