帅兰 day5作业
name = 'sailan'
pwd = '123'
user = input ( '请输入账号:' )
password = input ( '请输入密码:' )
print ( '账号:' , True and name == user)
print ( '密码:' , True and password == pwd)
egon = 84
while 1 :
count = input ( '猜猜egon多大:' )
count = int ( count)
if count == egon:
print ( '猜对了' )
elif count < 84 :
print ( '小了' )
elif count > 84 :
print ( '大了' )
print ( 10000 // 30 )
print ( 10000 % 30 )
egon = 18
egon += 3
print ( egon)
x = y = z = 10
dsb = "egon"
superman = "alex"
dsb, superman = superman, dsb
names = [ 'alex_sb' , 'wusir_sb' , 'oldboy_sb' , 'egon_nb' , 'lxx_nb' , 'tank_nb' ]
alex, wusir, oldboy, * _ = names
name = 'sailan'
pwd = '200024'
user = input ( '请输入你的姓名:' )
password = input ( '请输入您的密码:' )
if user == name and pwd == password:
print ( '登入成功' )
else :
print ( '账号密码错误' )
today = input ( '今天星期几:' )
if today == "Monday" :
print ( '上班' )
elif today == "Wednesday" :
print ( '上班' )
elif today == "Thursday" :
print ( '上班' )
elif today == "Tuesday" :
print ( '上班' )
elif today == "Friday" :
print ( '上班' )
elif today == "Saturday" :
print ( '玩' )
elif today == "Sunday" :
print ( '玩' )
else :
print ( '格式错误' )