ChatDev/WareHouse/QRCodeGenerator_THUNLP_20231015214731/QRCodeGenerator.prompt
2023-10-15 21:34:54 -05:00

1 line
671 B
Plaintext

Write a Python program that generates QR codes. Your program should take user input for the data or text that needs to be encoded in the QR code. It should then use a suitable library or package to generate a QR code image from the input data. Finally, the program should save the QR code image to a file, allowing the user to specify the file name and format (e.g., PNG, JPG).Make sure to provide a user-friendly interface that guides the user through the process of inputting the data and specifying the file name and format for the QR code image. Test your program with various inputs to ensure it generates valid QR codes and handles different data types gracefully.