Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/image-processing/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 如何将Dword转换为Qword_Python - Fatal编程技术网

Python 如何将Dword转换为Qword

Python 如何将Dword转换为Qword,python,Python,我想把Qword转换成Dword。通过程序员计算器,我可以轻松地转换它,但在python中找不到任何方法 Qword = 562949953442333 Dword = 21021 您可以使用位AND运算符将Qword屏蔽为0xffff: print(562949953442333 & 0xffff) 这将产生: 21021 您可以使用位AND运算符将Qword屏蔽为0xffff: print(562949953442333 & 0xffff) 这将产生: 21021

我想把Qword转换成Dword。通过程序员计算器,我可以轻松地转换它,但在python中找不到任何方法

Qword = 562949953442333
Dword = 21021

您可以使用位AND运算符将Qword屏蔽为
0xffff

print(562949953442333 & 0xffff)
这将产生:

21021

您可以使用位AND运算符将Qword屏蔽为
0xffff

print(562949953442333 & 0xffff)
这将产生:

21021

0xFFFFFF&562949953442333
0xFFFFFF&562949953442333
。我们如何在SQL中做同样的事情?我们如何在SQL中做同样的事情?