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

剑指offer+面试题3+第31行+是不是有问题 #13

Open
LinjingBi opened this issue Dec 19, 2018 · 0 comments
Open

剑指offer+面试题3+第31行+是不是有问题 #13

LinjingBi opened this issue Dec 19, 2018 · 0 comments

Comments

@LinjingBi
Copy link

    if type(target) == float and type(array[0][0]) == int:
        if int(target) == target:      #这里的==应该是!=吧 第三个测试例子也因为这个==,
                                                  #导致13.0输出为False,但是明明array里有13
              return False
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

1 participant