zoukankan
html css js c++ java
【Python算法】正常算法
## 1、正常算法
```
if x < y:
smaller = x
else:
smaller = y
print (smaller)
```
## 2、三元表达式
```
smaller = x if x<y else y
print (smaller)
```
##3、短路求值
```
smaller = x < y and x or y
print (smaller)
```
来自为知笔记(Wiz)
查看全文
相关阅读:
与我十年长跑的女朋友就要嫁人了
与我十年长跑的女朋友就要嫁人了
面试技巧
面试技巧
[转载]axis2通过wsdl生成客户端程序并本地调用
[转载]axis2通过wsdl生成客户端程序并本地调用
generator自动生成mybatis配置和类信息
generator自动生成mybatis配置和类信息
[转载]整合struts2、Spring3实现web快速开发
[转载]整合struts2、Spring3实现web快速开发
原文地址:https://www.cnblogs.com/stellarilee/p/6021487.html
最新文章
小波变换教程(六)
小波变换教程(五)
小波变换教程(四)
【转】小波变换教程(三)
【转】小波变换教程(二)
【转】小波变换教程(一)
【转】python get-pip.py could not find a version that satisfies
【转】python及其工具包安装基本流程
【原】C#两个类互相包含类对象可以吗?
【转】线性插值(Linear Interpolation)基本原理
热门文章
ssh(Spring+Spring mvc+hibernate)——EmpDaoImpl.java
ssh(Spring+Spring mvc+hibernate)——DeptDaoImpl.java
ssh(Spring+Spring mvc+hibernate)——BaseDaoImpl.java
sh(Spring+Spring mvc+hibernate)——IEmpDao.java
sh(Spring+Spring mvc+hibernate)——IDeptDao.java
sh(Spring+Spring mvc+hibernate)——BaseDao.java
ssh(Spring+Spring mvc+hibernate)——Dept.hbm.xml
ssh(Spring+Spring mvc+hibernate)——Dept.java
ssh(Spring+Spring mvc+hibernate)——Emp.hbm.xml
ssh(Spring+Spring mvc+hibernate)——Emp.java
Copyright © 2011-2022 走看看