if

if     ==    :

xxxx

elif     :

xxxx

else:

xxxx

输入字符串 input()

字符串转数值 int()

数值转字符串 str()

输出 print()

分隔字符串 , 输出显示为空格

连接字符串 + 输出无空格

age=50
user_input_age=int(input("Age is :"))

if user_input_age == age:
    print("Yes.")
elif user_input_age < age:
    print("A little smaller!")
else:
    print("A little bigger!")

最新文章

  1. SVN部署和使用
  2. QuartzCore笔记
  3. HowTo Perform the spatial selection 'Share a line segment with' using ArcObjects
  4. ArrayList/Vector的原理、线程安全和迭代Fail-Fast
  5. Tarjan算法求有向图的强连通分量
  6. MySql语句大全:创建、授权、查询、修改等
  7. PHP学习笔记03——函数
  8. 5.1:FactoryBean的使用
  9. tar打包和解压命令
  10. wind7下搭建ftp服务器
  11. flex渐变色制作圆角橙色按钮
  12. 【啊哈!算法】算法6:只有五行的Floyd最短路算法
  13. git相关的学习资料
  14. thinkphp5判断移动或pc端访问并调用不同模板
  15. http进阶
  16. Vue-CLI和脚手架
  17. PDF编辑方法,PDF怎么去除背景
  18. Axiso解决跨域访问(...XMLHttpRequest cannot load http://xxx.xxx No &#39;Access-Control-Allow-Origin&#39;...)
  19. git 的安装及使用
  20. idea 导入 android项目

热门文章

  1. CSH while read
  2. Java生鲜电商平台-生鲜电商高并发下的接口幂等性实现与代码讲解
  3. .NET平台性能测试工具BenchmarkDotnet 简介[译文]
  4. ES6-形参默认值
  5. Python学习(六)—— 函数、全局变量与局部变量
  6. RabbitMQ连接池、生产者、消费者实例
  7. leetCode练题——27. Remove Element
  8. Java入门笔记 05-多线程
  9. 探索 Python + HyperLPR 进行车牌识别
  10. python opencv:保存图像