博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2023年2月27日

摘要: if语句: # import random # 随机抽取模块# rse=random.randint(1,10)# print(rse)# t=input('请输入你猜的数!!!:')# if rse == int(t): # t原本是字符串int强行转成数字类型# print('恭喜你答对了')# 阅读全文

posted @ 2023-02-27 22:33 乱了啦 阅读(45) 评论(0) 推荐(0)