Hướng dẫn why does python restart shell? - tại sao python khởi động lại vỏ?

Số phát hành34258

Được tạo ra vào năm 2018-07-28 10:59 bởi Cross! Alex21, lần cuối đã thay đổi 2022-04-11 14:59 bởi quản trị viên. Vấn đề giờ đã kết thúc.2018-07-28 10:59 by Cross!Alex21, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Tin nhắn (8)
MSG322542 - (Xem)Tác giả: Aleksa Bulatovic (Cross! Alex21)Ngày: 2018-07-28 10:59
I was writing a code for my test in idle python.When i run the module it's just keeps restarting.
This is my code:

sins = 0
check = input()
if check == "check_sins":
        print(sins)
second = input("Ok,you can start when you are ready,type Im Ready! if you want to start the game")
print("Welcome to How smart are you test")
name = input("What's your name? ")
print(name)
if name == "Dimitrije":
    print("Nice to meet you Dimitrije")
start = input("Ready to start the test: ")
if start == "Yes":
    print("A) Gorillaz")
    print("B) Alvin and the chipmunks")
    print("C) Despacito 2")
    print("D) Who are you even")
    q1 = input("Which was the first animated band ever created? ")
    a1 = "A) Gorillaz"
    b1 = "B) Alvin and the chipmunks"
    c1 = "C) Despacito 2"
    d1 = "D) Who are you even"
    if q1 == "A" or q1 == "a":
        print("You are right,adding 10 sins for that")
        sins += 10
    else:
            sins = sins - 10
    print("A) Milan")
    print("B) ")
    print("")
    print("")
else:
    print(second)
    if start == "Im ready!":
        print("Ok,let's start")
    print(q1)
    print(a1)
    print(b1)
    print(c1)
    print(d1)
    if q1 == "A":
        print("You are right,adding 10 sins for that")
        sins = sins + 10
Note:I started learning python yesterday and sins are just a refrence of the youtube channel name called CinemaSins.So don't judge.
MSG322606 - (Xem)Tác giả: Jared (J-Repherts) **Ngày: 2018-07-29 03:26
First off, no judgment! :)

I just want to get some more details from you. 
1) How are you running your program?
2) How far into your program do you get?
3) What are you passing in as values for your Input() calls?
MSG322614 - (Xem)Tác giả: Aleksa Bulatovic (Cross! Alex21)Ngày: 2018-07-28 10:59
I was writing a code for my test in idle python.When i run the module it's just keeps restarting.
This is my code:

sins = 0
check = input()
if check == "check_sins":
        print(sins)
second = input("Ok,you can start when you are ready,type Im Ready! if you want to start the game")
print("Welcome to How smart are you test")
name = input("What's your name? ")
print(name)
if name == "Dimitrije":
    print("Nice to meet you Dimitrije")
start = input("Ready to start the test: ")
if start == "Yes":
    print("A) Gorillaz")
    print("B) Alvin and the chipmunks")
    print("C) Despacito 2")
    print("D) Who are you even")
    q1 = input("Which was the first animated band ever created? ")
    a1 = "A) Gorillaz"
    b1 = "B) Alvin and the chipmunks"
    c1 = "C) Despacito 2"
    d1 = "D) Who are you even"
    if q1 == "A" or q1 == "a":
        print("You are right,adding 10 sins for that")
        sins += 10
    else:
            sins = sins - 10
    print("A) Milan")
    print("B) ")
    print("")
    print("")
else:
    print(second)
    if start == "Im ready!":
        print("Ok,let's start")
    print(q1)
    print(a1)
    print(b1)
    print(c1)
    print(d1)
    if q1 == "A":
        print("You are right,adding 10 sins for that")
        sins = sins + 10
Note:I started learning python yesterday and sins are just a refrence of the youtube channel name called CinemaSins.So don't judge.
MSG322606 - (Xem)Tác giả: Jared (J-Repherts) **
Hướng dẫn why does python restart shell? - tại sao python khởi động lại vỏ?
Ngày: 2018-07-29 03:26
First off, no judgment! :)

I just want to get some more details from you. 
1) How are you running your program?
2) How far into your program do you get?
3) What are you passing in as values for your Input() calls?
MSG322614 - (Xem)Ngày: 2018-07-29 08:32*
Hướng dẫn why does python restart shell? - tại sao python khởi động lại vỏ?
Im running as a idle python(when im in editor,i run the module)
I get like in 3 days(if you asked when did i get into the program,english is not my first language)
For my input calls i put a string so that player knows what to answer to.
I hope i answered your questions for details.(I don't understand some things when someone says like '	PyArg_ParseTupleAndKeywords' or something like that,im 12 year old so i don't understand some issues)
MSG322630 - (Xem)
Tác giả: Steve Dower (Steve.Dower) *Tác giả: Aleksa Bulatovic (Cross! Alex21)Ngày: 2018-07-28 10:59
I was writing a code for my test in idle python.When i run the module it's just keeps restarting.
This is my code:

sins = 0
check = input()
if check == "check_sins":
        print(sins)
second = input("Ok,you can start when you are ready,type Im Ready! if you want to start the game")
print("Welcome to How smart are you test")
name = input("What's your name? ")
print(name)
if name == "Dimitrije":
    print("Nice to meet you Dimitrije")
start = input("Ready to start the test: ")
if start == "Yes":
    print("A) Gorillaz")
    print("B) Alvin and the chipmunks")
    print("C) Despacito 2")
    print("D) Who are you even")
    q1 = input("Which was the first animated band ever created? ")
    a1 = "A) Gorillaz"
    b1 = "B) Alvin and the chipmunks"
    c1 = "C) Despacito 2"
    d1 = "D) Who are you even"
    if q1 == "A" or q1 == "a":
        print("You are right,adding 10 sins for that")
        sins += 10
    else:
            sins = sins - 10
    print("A) Milan")
    print("B) ")
    print("")
    print("")
else:
    print(second)
    if start == "Im ready!":
        print("Ok,let's start")
    print(q1)
    print(a1)
    print(b1)
    print(c1)
    print(d1)
    if q1 == "A":
        print("You are right,adding 10 sins for that")
        sins = sins + 10
Note:I started learning python yesterday and sins are just a refrence of the youtube channel name called CinemaSins.So don't judge.
MSG322606 - (Xem)Ngày: 2018-07-29 08:32*
Hướng dẫn why does python restart shell? - tại sao python khởi động lại vỏ?
Im running as a idle python(when im in editor,i run the module)
I get like in 3 days(if you asked when did i get into the program,english is not my first language)
For my input calls i put a string so that player knows what to answer to.
I hope i answered your questions for details.(I don't understand some things when someone says like '	PyArg_ParseTupleAndKeywords' or something like that,im 12 year old so i don't understand some issues)
MSG322630 - (Xem)
Tác giả: Steve Dower (Steve.Dower) *Tác giả: Aleksa Bulatovic (Cross! Alex21)Ngày: 2018-07-28 10:59
I was writing a code for my test in idle python.When i run the module it's just keeps restarting.
This is my code:

sins = 0
check = input()
if check == "check_sins":
        print(sins)
second = input("Ok,you can start when you are ready,type Im Ready! if you want to start the game")
print("Welcome to How smart are you test")
name = input("What's your name? ")
print(name)
if name == "Dimitrije":
    print("Nice to meet you Dimitrije")
start = input("Ready to start the test: ")
if start == "Yes":
    print("A) Gorillaz")
    print("B) Alvin and the chipmunks")
    print("C) Despacito 2")
    print("D) Who are you even")
    q1 = input("Which was the first animated band ever created? ")
    a1 = "A) Gorillaz"
    b1 = "B) Alvin and the chipmunks"
    c1 = "C) Despacito 2"
    d1 = "D) Who are you even"
    if q1 == "A" or q1 == "a":
        print("You are right,adding 10 sins for that")
        sins += 10
    else:
            sins = sins - 10
    print("A) Milan")
    print("B) ")
    print("")
    print("")
else:
    print(second)
    if start == "Im ready!":
        print("Ok,let's start")
    print(q1)
    print(a1)
    print(b1)
    print(c1)
    print(d1)
    if q1 == "A":
        print("You are right,adding 10 sins for that")
        sins = sins + 10
Note:I started learning python yesterday and sins are just a refrence of the youtube channel name called CinemaSins.So don't judge.
MSG322606 - (Xem)
Tác giả: Jared (J-Repherts) *Ngày: 2018-07-29 03:26
First off, no judgment! :)

I just want to get some more details from you. 
1) How are you running your program?
2) How far into your program do you get?
3) What are you passing in as values for your Input() calls?
MSG322614 - (Xem)
Ngày: 2018-07-29 08:32
Im running as a idle python(when im in editor,i run the module)
I get like in 3 days(if you asked when did i get into the program,english is not my first language)
For my input calls i put a string so that player knows what to answer to.
I hope i answered your questions for details.(I don't understand some things when someone says like '	PyArg_ParseTupleAndKeywords' or something like that,im 12 year old so i don't understand some issues)
MSG322630 - (Xem)Tác giả: Steve Dower (Steve.Dower) *
Ngày: 2018-07-29 11:23
Maybe you could describe what it looks like when it restarts? Or take a screenshot and share it so we can see what is happening?
MSG322630 - (Xem)Tác giả: Steve Dower (Steve.Dower) *
Ngày: 2018-07-29 11:23
Maybe you could describe what it looks like when it restarts? Or take a screenshot and share it so we can see what is happening?
MSG322630 - (Xem)Tác giả: Steve Dower (Steve.Dower) *
Ngày: 2018-07-29 11:23
Maybe you could describe what it looks like when it restarts? Or take a screenshot and share it so we can see what is happening?
MSG322630 - (Xem)Tác giả: Steve Dower (Steve.Dower) *
Ngày: 2018-07-29 11:23
Maybe you could describe what it looks like when it restarts? Or take a screenshot and share it so we can see what is happening?
MSG322630 - (Xem)Tác giả: Steve Dower (Steve.Dower) *
type: behavior
messages: + msg322649

Ngày: 2018-07-29 11:23
stage: resolved

Maybe you could describe what it looks like when it restarts? Or take a screenshot and share it so we can see what is happening?
MSG322649 - (Xem) MSG322630 - (Xem)Tác giả: Steve Dower (Steve.Dower) *
messages: + msg322630

Ngày: 2018-07-29 11:23
components: + IDLE

Maybe you could describe what it looks like when it restarts? Or take a screenshot and share it so we can see what is happening?
Maybe you could describe what it looks like when it restarts? Or take a screenshot and share it so we can see what is happening?
MSG322630 - (Xem)Tác giả: Steve Dower (Steve.Dower) *
Ngày: 2018-07-29 11:23
Maybe you could describe what it looks like when it restarts? Or take a screenshot and share it so we can see what is happening?
MSG322630 - (Xem)Tác giả: Steve Dower (Steve.Dower) *
messages: + msg322606
Ngày: 2018-07-29 11:23
Maybe you could describe what it looks like when it restarts? Or take a screenshot and share it so we can see what is happening?
MSG322649 - (Xem)