设为首页
收藏本站
切换到宽版
登录
立即注册
找回密码
搜索
搜索
本版
帖子
用户
快捷导航
论坛
BBS
VIP用户组
官网群
无名商城论坛
»
论坛
›
资源分享区
›
学习资源专区
›
【LSP】python输入密码的隐藏及判断语句
返回列表
发帖
查看:
256
|
回复:
0
[其他技术]
【LSP】python输入密码的隐藏及判断语句
[复制链接]
无名
无名
当前离线
积分
32464
1万
主题
1万
帖子
3万
积分
管理员
积分
32464
发消息
发表于 2022-5-8 17:04:03
|
显示全部楼层
|
阅读模式
1 import getpass
2
3 username = input("username:")
4 password = input("password:")
5
6 if_username == username and _password == password:
7 print("welcome {name} login...", .format(name=username))
8 else:
9 print("Invalid username or password!")
使用python的内置模组来隐藏密码
判断年龄的小程序
age_of_girl = 16
guess_age = int(input(girl's age
)
if guess_age == age_of_girl:
print("you got it !")
elif guess_age >= age_of_girl:
print("think smaller , you think is bigger. ")
else:
print("think bigger , you think is smaller ")
username
,
password
,
print
,
age
,
think
相关帖子
•
【HC】【考核】小白学Python第二课:基础数据类型(上)
•
【万圣节】如何找回游览器网站保存的密码
•
【万圣节】(搬砖)如何找回浏览器已保存的网络密码
•
【DMT】如何找回浏览器已保存的网站密码
•
PHP echo 和 print 语句
•
如何用一行python代码装逼
•
【FUT】8个python实用脚本
回复
使用道具
举报
返回列表
发帖
高级模式
B
Color
Image
Link
Quote
Code
Smilies
您需要登录后才可以回帖
登录
|
立即注册
本版积分规则
发表回复
回帖后跳转到最后一页
快速回复
返回顶部
返回列表