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