# -*- codeing = utf-8 -*-
# @Time : 2021/6/28 15:46
# @Author : cheng xiao peng
# @File : demo3.py
# @Software:PyCharm
'''
a = 0
if a:
print("True")
else:
print("False")
'''
'''
score = int(input("请输入您的分数:"))
if score >= 90 and score <=100:
print("本次考试等级为A")
elif score >= 80 and score <90:
print("本次考试等级为B")
elif score >= 70 and score <80:
print("本次考试等级为C")
elif score >= 60 and score <70:
print("本次考试等级为D")
elif score >= 0 and score < 60:
print("本次考试等级为E")
'''
'''
import random
x = random.randint(0,2)
print(x)
'''
import random
print("Welcome to my game")
a =int( input("Please input 1&2&3 which 1_剪刀,2_石头,3_布:"))
b = random.randint(1,3)
c="You win"
d="You lose"
if a==1 and b == 3:
print(c)
elif a==2 and b == 1:
print(c)
elif a==3 and b == 2:
print(c)
elif a==b:
print("One more")
elif a == 1 and b == 2:
print(d)
elif a == 2 and b == 3:
print(d)
elif a == 3 and b == 1:
print(d)
没有合适的资源?快使用搜索试试~ 我知道了~
学习Python的小例子.zip
![preview](https://csdnimg.cn/release/downloadcmsfe/public/img/white-bg.ca8570fa.png)
共4个文件
py:4个
![preview-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/scale.ab9e0183.png)
需积分: 0 0 下载量 67 浏览量
2023-04-04
15:05:30
上传
评论
收藏 2KB ZIP 举报
温馨提示
内容概要:学习Python的小例子 平台:Python
资源推荐
资源详情
资源评论
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
收起资源包目录
![package](https://csdnimg.cn/release/downloadcmsfe/public/img/package.f3fc750b.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
共 4 条
- 1
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
![avatar](https://profile-avatar.csdnimg.cn/d1121c91fdff40f28ae4e59ee802abf4_qq_50594161.jpg!1)
程高兴
- 粉丝: 422
- 资源: 449
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
最新资源
- ParaStor300S技术培训PPT-面向售前-V1.4.pptx
- 在MATLAB中,你可以使用多种函数和工具来创建各种类型的图形 以下是一些基本的MATLAB绘图命令和示例:
- 1_网络2204班 30 王磊 open flow 协议分析实践.docx
- 探索 v-on 之奥秘二:事件及各类修饰符的深度剖析与案例展示
- k8s基础教程与相关面试
- TerraScan中文用户指南
- DCDC电源芯片 MP2315GJ-Z DataSheel
- ABAP代码上传到GiLab
- 汽车电子等产品EMC整改案例.pdf
- LN61C SOT23-3封装 高精度低功耗小封装电压检测芯片 深圳市可芯电子有限公司.pdf
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback-tip](https://img-home.csdnimg.cn/images/20220527035111.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)