猫史档案馆


【Python作品分享】World Records【作品秀】

用户:木兮MUIT木兮MUIT查看:0 回复:1 评论:0 创建时间:2021-01-27T18:50:56


【作品展示】

center_image

 

【作品介绍】

Are you still worried about forgetting what you need to do?

Are you still worried that no program will give you records only?

Are you still looking for a concise logging program?

Now it's here - World Records(SHIJI,Record Events)

It can only record and delete things, oh no, it can also view

Try this program

Hope it will give you a good experience

 

【作品源代码】

import time
print('世记')
print('World Records')
time.sleep(3)
print('——————————————————beat 3.0———————————————————')
print('使用前请阅读“使用注意事项”')
print('Read "Use precautions" before use')
print('—————————————————————————————————————————————')
a = []
while True:
    shu_ru = input('Reading:')
    if shu_ru in 'Reading':
        print('—————————————————————————————————————————————')
        print('* precautions for use *')
        print('Currently available mode: Notes')
        print('(default mode) notes can be recorded and deleted')
        print('Enter"change"if you want to change the mode')
        print('Enter"exit"to exit')
        print('Data will be lost after exit')
        print('This is only for English')
        print('—————————————————————————————————————————————')
        print('*Disclaimer Notes*')
        print('')
        print('—————————————————————————————————————————————')
        shu_ru2 = input(
            'I have read the notes carefully and agree to the Disclaimer Notes: (complete/cancel)')
        if shu_ru2 in 'complete':
            while True:
                shu_ru1 = input('record/delet/see: ')
                if shu_ru1 in 'record':
                    while True:
                        b = input('Record Content:')
                        if b in 'change':
                            break
                        else:
                            a.insert(0, [b])
                            print('record:', a, sep='')
                elif shu_ru1 in 'delet':
                    while True:
                        b = input('Delet Content:')
                        if b in 'change':
                            break
                        elif [b] in a:
                            a.remove([b])
                            print('record:', a, sep='')
                        else:
                            print(
                                "Can't delete!This is not on the record!")
                elif shu_ru1 in 'see':
                    print('record:', a, sep='')
                elif shu_ru1 in 'Now' 'time' 'Time' 'now' 'today' 'Today':
                    print('Okay, this is a hidden content')
                    print('Getting the current time')
                    time.sleep(2)
                    print('Now is', time.ctime())
                elif shu_ru1 in 'stop' 'exit':
                    print('Exited!')
                    break
                elif shu_ru1 in 'change':
                    print(
                        'Please select the mode first!')
                else:
                    print('No such function!')
                    print('Looking forward to more feature development!')
        else:
            print('You must read it!')
            break
    elif shu_ru in 'exit':
        break
    else:
        print('Please read the usage precautions first!')

 

【提示】

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

https://python.codemao.cn


回复

上一页1 页 / 共 1下一页
有舍有予有舍有予

World Records English

此版本为纯英版,双语版搜索“世记”即可看到beat3.1双语版!

点赞0


评论