![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python题目
新疆卖馕第一名
这个作者很懒,什么都没留下…
展开
-
用户登录
编程练习:用户登陆v1:1). 假设系统中的用户名"root",密码为"westos";2). 如果用户输入用户名和密码均正确显示"login ok" 如果用户名错误,显示"user is not exist" 如果密码错误,显示"password is no ok"3). 只有三次登陆机会,超过三次,显示"count is bigger than 3"#!/usr/原创 2017-08-24 21:07:21 · 278 阅读 · 0 评论 -
文章标题
编写一个python脚本,判断用户输入的变量名是否合法? (首位为字母或下划线,其他为数字,字母或下划线)#!/usr/bin/env python#coding:utf-8import strings=raw_input("please input string:")a=1while s[0] in string.letters+"_": for i in s[1:]:原创 2017-08-25 21:56:37 · 184 阅读 · 0 评论 -
用户管理系统
题目1:用户管理系统V2:用户功能如下:welcome to xxxx system1.注册:若用户存在,直接报错”name 已经存在”,若用户不存在,将用户信息保存起来,显示”注册成功”;2.登陆:若用户存在,判断密码是否正确,若用户不存在,报错”name 不存在”;3.注销:若用户存在,删除用户信息;若不存在,报错报错”name 不存在;4.退出:break#!/usr/bin/env原创 2017-08-29 20:32:39 · 457 阅读 · 0 评论