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

NameError: name '女朋友' is not defined!! #31

Open
sonack opened this issue Jun 8, 2019 · 5 comments
Open

NameError: name '女朋友' is not defined!! #31

sonack opened this issue Jun 8, 2019 · 5 comments

Comments

@sonack
Copy link

sonack commented Jun 8, 2019

找不到对象,怎么办?

@MikoSecSoS
Copy link

new a object.

@Kyle-Kyle
Copy link
Contributor

Kyle-Kyle commented Jun 9, 2019

GF = 女朋友()
while True:
    try:
        GF.dating()
    except GamingInterrupt:
        if GF.is_complaining():
            GF.breakup()
            break
    except CodingInterrupt:
        if not GF.is_complaining():
            continue
        for method in ["sweet words", "hug", "gift"]:
             try:
                  GF.comfort(method)
                  break
             except ComfortError:
                  continue
        else:
            GF.breakup()
            break
del GF #we need to delete GF because she takes too much *memory*

@taseikyo
Copy link

没有对象 new 一个嘛(滑稽

@zhaoweih
Copy link

GF = 女朋友()
while True:
    try:
        GF.dating()
    except GamingInterrupt:
        if GF.is_complaining():
            GF.breakup()
            break
    except CodingInterrupt:
        if not GF.is_complaining():
            continue
        for method in ["sweet words", "hug", "gift"]:
             try:
                  GF.comfort(method)
                  break
             except ComfortError:
                  continue
        else:
            GF.breakup()
            break
del GF #we need to delete GF because she takes too much *memory*

优秀的代码

@Sagx
Copy link

Sagx commented Jan 8, 2020

有点东西

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

6 participants