diff --git a/LXFY/0000/main.py b/LXFY/0000/main.py new file mode 100644 index 00000000..3d758db0 --- /dev/null +++ b/LXFY/0000/main.py @@ -0,0 +1,10 @@ +from PIL import Image, ImageDraw, ImageFont + +def add_num(filePath, num=1): + img = Image.open(filePath) + size = img.size + fontsize = size[1]/4 + myfont = ImageFont.truetype('Futura.ttf', fontsize) + ImageDraw.Draw(img).text((2 * fontsize, 0), str(num), font = myfont, fill = 'red') + img.save('avatar_added.jpg') + img.show() \ No newline at end of file diff --git a/LXFY/0001/main.py b/LXFY/0001/main.py new file mode 100644 index 00000000..19e2cc00 --- /dev/null +++ b/LXFY/0001/main.py @@ -0,0 +1,8 @@ +import random, string + +f = open('Promo_code.txt', 'wb') +for i in range(200): + chars = string.letters + string.digits + s = [random.choice(chars) for i in range(10)] + f.write(''.join(s) + '\n') +f.close() \ No newline at end of file