Created
March 19, 2019 08:29
-
-
Save ZhigangPu/3ae0771b50a7aba40cfcf8a6cee6dc9b to your computer and use it in GitHub Desktop.
copy image
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with open('OceanCoder_SNSD_P2 (5).jpg', 'rb') as f: | |
pic1 = f.read() | |
for i in range(1000): | |
with open('1'+str(i), 'wb') as f: | |
f.write(pic1) | |
with open('OceanCoder_SNSD_P2 (133).jpg', 'rb') as f: | |
pic2 = f.read() | |
for i in range(1000): | |
with open('2'+str(i), 'wb') as f: | |
f.write(pic2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment