int(x / y)
x // y
If so, which is better to use in real application? And why?
P.S. Are there any other methods in Python that achieve similar result but more suitable in different use cases? For example, if y is 2^n, then we can do bitwise shifting - that's all I know.
0 comments:
Post a Comment
Thanks