1
2
3
4
5
6
7
8
9
10
11
12
|
# -*- coding:utf-8 -*-
_username
=
'name'
_passwd
=
'abcd1234'
username
=
input
(
"username:"
)
passwd
=
input
(
"passwd:"
)
if
_username
=
=
username
and
_passwd
=
=
passwd:
print
(
"Welcome user {name} login "
.
format
(name
=
username))
else
:
print
(
"username or password is wrong"
)
|
本文转自Mr_chen 51CTO博客,原文链接:http://blog.51cto.com/metis/1953666,如需转载请自行联系原作者