python if 语句
来源:互联网 发布:淘宝拍下减10元怎么弄 编辑:程序博客网 时间:2024/06/04 08:10
#!/usr/bin/python
# -*- coding: UTF-8 -*-
flag = False
name = 'luren'
if name == 'python': # 判断变量否为'python'
flag = True # 条件成立时设置标志为真
print('welcome boss') # 并输出欢迎信息
else:
print (name) # 条件不成立时输出变量名称
# -*- coding: UTF-8 -*-
flag = False
name = 'luren'
if name == 'python': # 判断变量否为'python'
flag = True # 条件成立时设置标志为真
print('welcome boss') # 并输出欢迎信息
else:
print (name) # 条件不成立时输出变量名称
0 0
- Python的if语句
- Python-if语句
- python if语句语法
- python if语句
- Python-if语句
- Python学习:if语句
- Python-if语句
- python的if语句
- Python之if语句
- python if 语句
- Python if 语句
- Python if语句
- Python if 语句
- python之if语句
- Python-if 语句
- Python if语句
- if语句(python)
- python if语句使用
- @RequestMapping
- zookeeper的配置项
- iOS文件和文件夹的创建,删除,移动, 拷贝,是否存在及简单数据类型的读写
- Python中的一些问题
- indicator(记录备用)
- python if 语句
- Thinkphp 3.23 页面上拉加载 基于ajax分页
- tarjan算法
- android权限和说明
- STM32 SVCall
- android应用开发-从设计到实现 3-7 静态原型的更多天气信息
- Redis大总结之四:任务队列 | 发布/订阅模式
- Java web加密之将应用从http换成https的方法
- 阿里云服务器相关配置以及javaweb项目部署