Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/cytao.top/build/var/Typecho/Db/Adapter/Pdo/Mysql.php on line 84

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/cytao.top/build/var/Typecho/Db/Adapter/Pdo/Mysql.php on line 85

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/wwwroot/cytao.top/build/var/Typecho/Common.php on line 918

Deprecated: ltrim(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/cytao.top/build/var/Typecho/Common.php on line 919

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/cytao.top/build/var/Typecho/Db/Adapter/Pdo/Mysql.php on line 85

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/cytao.top/build/var/Typecho/Db/Adapter/Pdo/Mysql.php on line 84

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/cytao.top/build/var/Typecho/Db/Adapter/Pdo/Mysql.php on line 85

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/cytao.top/build/var/Typecho/Db/Adapter/Pdo/Mysql.php on line 84

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/cytao.top/build/var/Typecho/Db/Adapter/Pdo/Mysql.php on line 85

Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/cytao.top/build/var/Typecho/Common.php on line 919

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/cytao.top/build/var/Typecho/Db/Adapter/Pdo/Mysql.php on line 84

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/cytao.top/build/var/Typecho/Db/Adapter/Pdo/Mysql.php on line 85
作业第二题 - 信安知识

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/cytao.top/build/var/Typecho/Db/Adapter/Pdo/Mysql.php on line 85
侧边栏壁纸
  • 累计撰写
    Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/cytao.top/build/var/Typecho/Db/Adapter/Pdo/Mysql.php on line 84

    Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/cytao.top/build/var/Typecho/Db/Adapter/Pdo/Mysql.php on line 85
    23
    篇文章
  • 累计收到
    Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/cytao.top/build/var/Typecho/Db/Adapter/Pdo/Mysql.php on line 84

    Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/cytao.top/build/var/Typecho/Db/Adapter/Pdo/Mysql.php on line 85
    1
    条评论

作业第二题

root
2022-04-06 / 0 评论 /
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/cytao.top/build/var/Typecho/Db/Adapter/Pdo/Mysql.php on line 84

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/cytao.top/build/var/Typecho/Db/Adapter/Pdo/Mysql.php on line 85
255 阅读
/ 正在检测是否收录...

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/cytao.top/build/var/Typecho/Db/Adapter/Pdo/Mysql.php on line 84

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/cytao.top/build/var/Typecho/Db/Adapter/Pdo/Mysql.php on line 85
import re
while True:
        loginname = input("输入用户名")
        if loginname[0]=="_"and(len(loginname)>3 and len(loginname)<30):
                print("用户名无误")
        elif not(len(loginname)>3 and len(loginname)<30):
                print("用户名长度在3-30之间")
                continue
        else:
                print("用户名开头使用_")
                continue
        loginpasswd=input("请输入密码")
        print(re.search(r'\W',loginpasswd))
        if loginpasswd.isalnum()==False and (len(loginpasswd)>7 and len(loginpasswd)<17) and re.search(r'\W',loginpasswd)==None:
                print("密码无误注册成功")
                break
        elif not(len(loginpasswd)>8 and len(loginpasswd)<16):
                print("密码长度在8-16之间,且必须是由字母、数字、下划线,组成")
        elif loginpasswd.isalnum()==True :
                print("密码必须是由字母、数字、下划线,组成")
                print("没有下划线")
        else:
                print("密码有非法字符")

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/cytao.top/build/var/Typecho/Db/Adapter/Pdo/Mysql.php on line 84

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/cytao.top/build/var/Typecho/Db/Adapter/Pdo/Mysql.php on line 85
0

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/cytao.top/build/var/Typecho/Db/Adapter/Pdo/Mysql.php on line 84

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/cytao.top/build/var/Typecho/Db/Adapter/Pdo/Mysql.php on line 85
暂无标签

Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/cytao.top/build/var/Widget/Archive.php on line 1617

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/cytao.top/build/var/Typecho/Db/Adapter/Pdo/Mysql.php on line 84

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/cytao.top/build/var/Typecho/Db/Adapter/Pdo/Mysql.php on line 85

    Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/cytao.top/build/var/Typecho/Db/Adapter/Pdo/Mysql.php on line 85

    Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/cytao.top/build/var/Typecho/Db/Adapter/Pdo/Mysql.php on line 84

    Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/cytao.top/build/var/Typecho/Db/Adapter/Pdo/Mysql.php on line 85

    Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/cytao.top/build/var/Typecho/Common.php on line 919

    Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/cytao.top/build/var/Typecho/Db/Adapter/Pdo/Mysql.php on line 85

    Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/cytao.top/build/var/Typecho/Db/Adapter/Pdo/Mysql.php on line 84

    Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/cytao.top/build/var/Typecho/Db/Adapter/Pdo/Mysql.php on line 85

    Deprecated: urlencode(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/cytao.top/build/var/Widget/Abstract/Contents.php on line 671

    Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/cytao.top/build/var/Typecho/Common.php on line 919

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/cytao.top/build/var/Typecho/Request.php on line 310

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/cytao.top/build/var/Typecho/Db/Adapter/Pdo/Mysql.php on line 84

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/cytao.top/build/var/Typecho/Db/Adapter/Pdo/Mysql.php on line 85

Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /www/wwwroot/cytao.top/build/var/Typecho/Db/Adapter/Pdo/Mysql.php on line 65

Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /www/wwwroot/cytao.top/build/var/Typecho/Db/Adapter/Pdo/Mysql.php on line 65

评论 (0)

取消