python >>运算
时间: 2023-10-17 10:24:42 浏览: 94
Python中的>>运算符是右移位运算符。它将一个数的二进制表示向右移动指定的位数,并在左侧用0填充。例如,在进行右移位运算时,10的二进制表示为1010,右移2位后得到0010,转换为十进制为2。所以,4>>2的结果是2。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [第2.3节 Python运算符大全](https://blog.csdn.net/LaoYuanPython/article/details/89263071)[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^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [xml文件批量处理python脚本](https://download.csdn.net/download/caoxinri123/88239057)[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^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文