猫史档案馆


【Python作品分享】猜数字【作品秀】

用户:屑雷神索尔屑雷神索尔查看:1 回复:3 评论:1 创建时间:2019-08-22T18:59:44


【作品展示】

center_image

 

【作品介绍】

跟你们做的没啥区别啦,真正的亮点是用了加密和解密的自制agent库,你们慢慢猜用户名和密码吧!(需要安装agent库,在贴吧里查)

 

【作品源代码】

import random
import time
import agent

username=agent.recode('奵獷紊烁昵乖姉',76)
password = int(agent.recode('ᄮᄫᄨᄨ',4343))
an1 = input('请输入你的用户名:')
an2=int(input('请输入你的密码:'))
if an1==username and an2==password:
    print('成功登入!')
    print('载入中……')
    print('适当游戏益脑,过度游戏沉迷')
    time.sleep(5)
    print('加载完毕')
    playing=True
    while playing:
        a=random.randint(1,10)
        an1=int(input('请猜一个数字:'))
        while an1!=a:
            if an1a:
                print('太大了!')
            an1 = int(input('请猜一个数字:'))
        print('答对了!')
        a1=input('你还想继续玩吗?')
        if a1!='是':
            playing=not playing
            break
    print('请下次再来!')
    time.sleep(2)
        

else:
    print('用户名或密码错误!')

 

【提示】

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

https://python.codemao.cn


回复

上一页1 页 / 共 1下一页
deer_再见deer_再见

诶?我前几天用kitten做了一个

https://shequ.codemao.cn/work/33278846

你要举报我广告我也没办法~

点赞1


评论


屑雷神索尔屑雷神索尔

agent 库还没发emotion_编程猫_翻白眼

点赞0


评论


屑雷神索尔屑雷神索尔

agent 庫鏈接:https://shequ.cod喵/community/194402

点赞0


评论