Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

数值转化 #35

Open
LJJ1994 opened this issue Jun 12, 2019 · 1 comment
Open

数值转化 #35

LJJ1994 opened this issue Jun 12, 2019 · 1 comment

Comments

@LJJ1994
Copy link

LJJ1994 commented Jun 12, 2019

mid = (low + high)/2,建议用int()转换成整型,不然会报错:
mid = int((low + high)/2)

@Sean16SYSU
Copy link

直接用 mid = (low + high)//2 替代也完全ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants