python的/和//
时间: 2023-08-11 17:07:33 浏览: 89
在Python中,/和//是两个不同的算术运算符。/是除法运算符,用于执行浮点数除法操作,结果将是一个浮点数。//是整除运算符,用于执行整数除法操作,结果将是一个整数。<em>1</em><em>2</em>
#### 引用[.reference_title]
- *1* [Python语言中/与//的区别是什么?](https://blog.csdn.net/wobuchixiangcain/article/details/122308044)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item]
- *2* [python中/与//以及\和\\的区别是什么](https://blog.csdn.net/weixin_45831829/article/details/130167509)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文