Guest User

Untitled

a guest
Jun 4th, 2022
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. Python:
  2.  
  3. import qrcode
  4. import time
  5. qr = qrcode.make("Hello, world! It's " + time.asctime(time.localtime()) + " right now.")
  6. qr.save("py-qr.png")
  7.  
  8.  
  9. Golang:
  10.  
  11. import (
  12. "github.com/skip2/go-qrcode"
  13. "time"
  14. )
  15.  
  16. func main() {
  17. qrcode.WriteFile("Hello, world! It's " + time.Now().String() + " right now.", qrcode.Medium, 256, "qr-go.png")
  18. }
  19.  
Advertisement
Add Comment
Please, Sign In to add comment