BitShiftLeft[n,k]
向左移动整数 n 的二进位 k 个位置,在右边填充 0.
BitShiftLeft[n]
向左移动一个二进制位.
BitShiftLeft
BitShiftLeft[n,k]
向左移动整数 n 的二进位 k 个位置,在右边填充 0.
BitShiftLeft[n]
向左移动一个二进制位.
更多信息
- BitShiftLeft[n,k] 等价于 n2^k.
- 负数 k 向右移动.
范例
打开所有单元 关闭所有单元范围 (3)
BitShiftLeft[32]BitShiftLeft[32, 1]BitShiftLeft 对任意大小的数字起作用:
BitShiftLeft[2 ^ 200 - 1, 7]BitShiftLeft 线性作用于列表:
BitShiftLeft[{1, 2, 4, 16}, 2]技术笔记
文本
Wolfram Research (2007),BitShiftLeft,Wolfram 语言函数,https://reference.wolfram.com/language/ref/BitShiftLeft.html.
CMS
Wolfram 语言. 2007. "BitShiftLeft." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/BitShiftLeft.html.
APA
Wolfram 语言. (2007). BitShiftLeft. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/BitShiftLeft.html 年
BibTeX
@misc{reference.wolfram_2026_bitshiftleft, author="Wolfram Research", title="{BitShiftLeft}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/BitShiftLeft.html}", note=[Accessed: 17-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_bitshiftleft, organization={Wolfram Research}, title={BitShiftLeft}, year={2007}, url={https://reference.wolfram.com/language/ref/BitShiftLeft.html}, note=[Accessed: 17-August-2026]}