fork download
  1. import pyqrcode
  2.  
  3. x = 201301001
  4. while x <= 201301010:
  5. url = pyqrcode.create(x)
  6. with open('QR/' + str(x) + '.png', 'w') as fstream:
  7. url.png(fstream, scale=20)
  8. # same as above
  9. url.png('QR/' + str(x) + '.png', scale=20)
  10. print(str(x) + " Done")
  11. x = x + 1
  12. # in-memory stream is also supported
Runtime error #stdin #stdout #stderr 0.01s 28384KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 1, in <module>
ImportError: No module named 'pyqrcode'