Skip to content

Instantly share code, notes, and snippets.

@ZhigangPu
Created March 19, 2019 08:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ZhigangPu/3ae0771b50a7aba40cfcf8a6cee6dc9b to your computer and use it in GitHub Desktop.
Save ZhigangPu/3ae0771b50a7aba40cfcf8a6cee6dc9b to your computer and use it in GitHub Desktop.
copy image
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