python - What is the difference between - and --- operators?
问题描述
I'm learning Python and in my book author uses --- operator in arithmetic operations and I can't find in google or SoF what is the difference between
>>> 5 - 2
3
and
>>> 5 --- 2
3
Update: Yeah, I understand why you all are downvoting this, but I just thought that may be some python specific, which is apparently not.
The book I found this is pretty good one actually - Python Journeyman by Robert Smallshire
so I will assume it is just an error in the book.
解决方案
推荐阅读
- c - 获取整数的负号并将其存储为 char 的最佳方法是什么?
- angularjs - 在sql server Angularjs asp.netmvc中数据更新之前显示记录的搜索方法
- python - 对多个数据帧执行类似的分析
- jboss - 部署自定义 SPI (FreeMarkerLoginFormsProvider) 时出现问题
- matlab-figure - 如何绘制一些数据的灰度及其置信区间
- c - 在对 execvp 执行无效命令后,命令和结果打印了两次
- python - 将实例字段转换为属性
- azure - Azure RM 模板。有条件地部署复制资源
- version - 如何将 Visual Studio 代码更新到最新版本
- sql - PLS-00103:在预期以下情况之一时遇到符号“CREATE”: