# n=0
# while n < len(names):
# print(names[n])
# n+=1
# names=['egon','asb','wsb','lsb','csb']
# info={'name':'egon','age':18,'sex':'male'}
#
# # for k in info: #x=''age'
# # print(k,info[k])
#
# for item in names:
# print(item)
# for i in range(1,10):
# print(i)
# for i in range(10): #默认的起始位置是0
# print(i)
# for i in range(1,10,2): #1 3 5 7 9
# print(i)
# names=['egon','asb','wsb','lsb','csb']
# for i in range(len(names)):
# print(i,names[i])
# for i in range(5):
# print('========>第一层: %s<=========' %i)
# for j in range(3):
# print(' 第二层: %s' %j)
#for+break
# names=['asb','wsb','egon','lsb','csb']
# for n in names:
# if n == 'egon':
# break
# print(n)
#for+continue
# names=['asb','wsb','egon','lsb','csb']
# for n in names:
# if n == 'egon':
# continue
# print(n)
#for+else
# names=['asb','wsb','egon','lsb','csb']
# for n in names:
# # if n == 'egon':
# # break
# print(n)
# else:
# print('=====>')
01 流程控制之If判断
# 语法1
# if 条件:
# 代码1
# 代码2
# 代码3
# ...
# cls='human'
# sex='female'
# age=18
#
# if cls == 'human' and sex == 'female' and age > 16 and age < 22:
# print('开始表白')
#
# print('end....')
#
#
# 语法2
# if 条件:
# 代码1
# 代码2
# 代码3
# ...
# else:
# 代码1
# 代码2
# 代码3
# ...
# cls='human'
# sex='female'
# age=38
#
# if cls == 'human' and sex == 'female' and age > 16 and age < 22:
# print('开始表白')
# else:
# print('阿姨好')
#
# print('end....')
# 语法3
# if 条件1:
# 代码1
# 代码2
# 代码3
# ...
# elif 条件2:
# 代码1
# 代码2
# 代码3
# ...
# elif 条件3:
# 代码1
# 代码2
# 代码3
# ...
# ............
# else:
# 代码1
# 代码2
# 代码3
# ...
#练习
# '''
# 如果:成绩>=90,那么:优秀
#
# 如果成绩>=80且<90,那么:良好
#
# 如果成绩>=70且<80,那么:普通
#
# 其他情况:很差
#
# '''
#
# score1=input('请输入你的成绩>>: ').strip()
# score=int(score1)
# if score>=90:
# print('优秀')
# elif score>=80 and score<90:
# print('良好')
# elif score>=70 and score<80:
# print('普通')
# else:
# print('很差')
n={'a':111,'b':222,'c':333,'d':444}
# for k in n.values():
# print(k)
print(n['a'])
# score=input('your score: ') #score='73'
# score=int(score) #score=73
# if score >= 90:
# print('优秀')
# elif score >= 80:
# print('良好')
# elif score >= 70:
# print('普通')
# else:
# print('很差')
# user_from_db='egon'
# pwd_from_db='123'
#
# user_from_inp=input('username>>>: ')
# pwd_from_inp=input('password>>>: ')
#
# if user_from_inp == user_from_db and pwd_from_inp == pwd_from_db:
# print('login successfull')
# else:
# print('user or password error')
#if的嵌套
# cls='human'
# sex='female'
# age=18
# is_success=False
#
# if cls == 'human' and sex == 'female' and age > 16 and age < 22:
# print('开始表白...')
# if is_success:
# print('在一起')
# else:
# print('我逗你玩呢....')
# else:
# print('阿姨好')
#
# print('end....')
#
# names=['egon','asb','wsb','lsb','csb']
# n=0
# while n < len(names):
# print(names[n])
# n+=1
# names=['egon','asb','wsb','lsb','csb']
# info={'name':'egon','age':18,'sex':'male'}
#
# # for k in info: #x=''age'
# # print(k,info[k])
#
# for item in names:
# print(item)
# for i in range(1,10):
# print(i)
# for i in range(10): #默认的起始位置是0
# print(i)
# for i in range(1,10,2): #1 3 5 7 9
# print(i)
#
# names=['egon','asb','wsb','lsb','csb']
# for i in range(len(names)):
# print(i,names[i])
# for i in range(5):
# print('========>第一层: %s<=========' %i)
# for j in range(3):
# print(' 第二层: %s' %j)
# for+break
# names=['asb','wsb','egon','lsb','csb']
# for n in names:
# if n == 'egon':
# break
# print(n)
#for+continue
# names=['asb','wsb','egon','lsb','csb']
# for n in names:
# if n == 'egon':
# continue
# print(n)
#for+else
# names=['asb','wsb','egon','lsb','csb']
# for n in names:
# # if n == 'egon':
# # break
# print(n)
# else:
# print('=====>')