Skip to content

Python Basic Knowledge

约 35 个字 预计阅读时间不到 1 分钟

[::-1]

When an object is indexable,we can use a[::-1],-1 means it will do operation from end to start. So [A:B:-1]

Bytewise Operation

>> 右移

<< 左移 相当于乘\(2^n\)

& , | ,