首页
移动开发
物联网
服务端
编程语言
企业开发
数据库
业界资讯
其他
搜索
python //、/、%
其他
2018-07-27 16:38:02
阅读次数: 0
python2中的地板除/,是取整数位。
3/2=1
3/2.0=1.5
在pyhon3中/是真除法。
3/2=1.5
如果想在python3使用地板除,是//
3//2=1
%表示求余数
5%2=1
猜你喜欢
转载自
blog.csdn.net/qq_26529803/article/details/81163165
python
python *与**
Python with
Python~
python if
python for
【python】
Python not and or
python if not
Python: with .. as
python ..
python //、/、%
Python①
python的@
‘/’ 与 ‘//’ in python
python。
Python __ __
python 的and or
PYTHON[]
python **
Python with ... as
python的with
```python
PythonⅠ
PythonⅡ
Python。。。
python——this
[python]Python
Python【Python】
python专题 python基础
今日推荐
探索 api.maynor1024.live:一站式 AI 服务平台
AI一键去衣技术:窥见深度学习在图像处理领域的革命(最后有彩蛋)
艾体宝案例 | 使用Redis和Spring Ai构建rag应用程序
Apple M1 vs 高通8Gen2 vs Apple A12Z各方面比较
【升职加薪必备架构图】Springboot学习路线汇总_springboot四层架构流程图
与Apollo共创生态:Apollo7周年大会自动驾驶生态利剑出鞘
Spring Boot 3.0:未来企业应用开发的基石
Java 的 AI 前景光明
国内首个智能体生态大会!2024百度万象大会定档5月30日
开源一周年,青语言新版发布
深入浅出:大型语言模型(LLM)的全面解读
顶会ICLR2024论文Time-LLM:基于大语言模型的时间序列预测
周排行
第五讲:AbstractBean以及Ioc常见注解使用和自动装配
python-re模块学习-正则表达式
黑客攻击常用手段
正则表达式的规则
windwos::mutex
Spring中日志的使用(log4j)
Bootstra5 按钮处理
JVM内存结构-这一篇全部了解
Android的低级错误
Oracle中Cursor, A表a1字段值复制到B表b1字段
每日归档
更多
2024-06-02(4)
2024-06-01(60)
2024-05-31(47)
2024-05-30(4)
2024-05-29(65)
2024-05-28(2)
2024-05-27(56)
2024-05-26(6)
2024-05-25(68)
2024-05-24(65)