[Python] I'm making a Python prank Library and need some code for functions [closed]

Discussão em 'Python' iniciado por Stack, Junho 26, 2025.

  1. Stack

    Stack Membro Participativo

    So far I have coded this (I can't add stack overflow says my post is mostly code) and I do not have any ideas for pranks. Keep in mind that this is not malware! If anyone could help me I would be very grateful. I will not give credit. I am trying to lengthen this to make it not get rejected. I am a beginner in python and still learning, so please explain your code! Here is one function I made with a tutorial.

    sym = "オリアホテマケメエカキムユ"
    sym += "日ハミヒーウシナモニサワツ"
    sym += "0123456789"

    dc = g.GetDC(0)
    font = g.LOGFONT()
    font.lfFaceName = "Consolas"
    fnt = g.CreateFontIndirect(font)
    g.SelectObject(dc, fnt)
    g.SetBkColor(dc, a.RGB(0, 0, 0))
    colors = [
    a.RGB(0, 255, 65),
    a.RGB(0, 59, 0),
    a.RGB(0, 143, 17)
    ]
    w = a.GetSystemMetrics(0)
    h = a.GetSystemMetrics(1)
    while True:
    x = random.randint(0, w) // 10 * 10
    to = random.randint(0, h)
    for y in range(0, to, 15):
    color = random.choice(colors)
    g.SetTextColor(dc, color)
    g.DrawText(dc,
    random.choice(sym),
    1,
    (x, y, x + 20, y + 30), 0)```

    Continue reading...

Compartilhe esta Página