猫史档案馆


【Python作品分享】乱码生成器

用户:糖醋龙酱=w=糖醋龙酱=w=查看:0 回复:0 评论:0 创建时间:2022-05-29T20:23:27


【作品展示】

center_image

 

【作品介绍】

生成乱码

 

【作品源代码】

import random
import time

i = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "a", "b", "c", "d", "e", "f",
     "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v",
     "w", "x", "y", "z", ",", ".", "/", ";", ":", "<", ">", "#", ]
o = [".dat",".class",".json",".log",".png",".mca",".dll",".mp3",".js",".xml"]
while True:
    u = i[random.randint(0, len(i)-1)]+i[random.randint(0, len(i)-1)]+i[random.randint(
        0, len(i)-1)]+i[random.randint(0, len(i)-1)]+i[random.randint(0, len(i)-1)]+\
        i[random.randint(0, len(i)-1)]
    y = o[random.randint(0, len(o)-1)]
    print(u+y)
    time.sleep(random.randint(5,10)*0.01)

 

【提示】

部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:

https://python.codemao.cn


回复

上一页1 页 / 共 0下一页