python学习第一天cyx

编程入门 行业动态 更新时间:2024-10-15 10:18:24

<a href=https://www.elefans.com/category/jswz/34/1770869.html style=python学习第一天cyx"/>

python学习第一天cyx

# 上午:
# #用户交互
#
#
# # name = '崔玉鑫'
# # age = 21
# # name = input("请输入你的名字")
# # age = input("请输入你的年龄")
# # print('我的姓名是'+name,'我的年龄是'+age)
#
# name = '1'
# password = '1'
#
# n1 = input('请输入用户名:')
# pwd1 = input('请输入密码:')
#
# if name == n1 and password == pwd1:
#     print('登陆成功')
#
#     print('****************游戏开始*****************')
#     csz = '5'
#     cc = input('请输入一个数字:')
#     if csz == cc:
#         print('恭喜你猜对啦')
#     else:
#         print('对不起,猜错啦')
# else:
#     print('请重新输入')# num = input('请输入数字:')
# if num == '1':
#     print('1433')
# elif num == '2':
#     print('1433223')
# else :
#     print('滚')# fenshu = int(input('输入分数:'))
# if fenshu > 100:
#     print('最高100分')
# elif fenshu > 90:
#     print('A')
# elif fenshu > 70:
#     print('B')
# elif fenshu > 60:
#     print('C')
# else:
#     print('不及格')# name = '1'
# password = '1'
#
# n1 = input('请输入用户名:')
# pwd1 = input('请输入密码:')
#
# while name != n1 or password != pwd1:
#     print('账户或密码不正确,请重新输入:')
#     n1 = input('请输入用户名:')
#     pwd1 = input('请输入密码:')
#
# print('****************登陆成功*****************')
# print('****************游戏开始*****************')
# csz = '5'
# cc = input('请输入一个数字:')
# while csz != cc:
#     print('*************猜错啦,请重新输入*********')
#     cc = input('请重新输入一个数字:')
# print('恭喜你,猜对啦!')# 下午:# count = 1
# flag = True
# while flag:
#     print(count)
#     count = count + 1
#     if count > 100:
#         flag = False# count = 1
# sum = 0
# while count <= 100:
#     sum = sum + count
#     count = count + 1
# print(sum)
# '''
# count                sum
#   1                   0+1
#   2                   0+1+2
#   3                   0+1+2+3
# '''# count = 1
# while True:
#     print(count)
#     count = count + 1
#     if count > 100:
#         break# print(1111)
# # count = 1
# # while count < 20:
# #     print(count)
# #     continue
# #     count = count + 1# count = 0
# while count <= 9:
#     count += 1
#     if count >6 and count <8:
#         continue
#     print("loop",count)
# 
# print('-----out of while loop---------')

更多推荐

python学习第一天cyx

本文发布于:2024-03-23 02:03:34,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1739145.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:python   cyx

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!