Home > other >  Sublime does not execute Python code
Sublime does not execute Python code

Time:02-10


As shown in figure, I wrote a few pieces of code, at compile time, sublime does perform only two words, feel no input function of the code execution, to ask what it is
Where is my sublime does configuration is there a problem?

CodePudding user response:

Nobody is solving the problem of the small white?

CodePudding user response:

Send the code.

CodePudding user response:

refer to the second floor Minions__ response:
hair code see.
code, are tested in idle, and can perform, but inside the sublime does only perform two other print, then I don't have below
Lili=[sex: "girl," "yuwen: 90", "shuxue: 95"]
Lilei=[" sex: boy, "" yuwen: 70", "shuxue: 92"]
Student information=[] # students list - binary list
Student. Append (lili) # will be the student's name lili information to join student information big list
Student. Append (lilei) # will be the student's name lilei information added to the student information big list
Student. Insert (0, name: "lili") # in the student information lili is put on the first position name list
Student. Insert (2, "name: lilei") # in the student information lilei is put on the first position name list
Lili. Append (" height: 165 cm) # to lili increase height information
Lilei. Append (" height: 178 cm) # to lilei increase height information
While True: # cycle input student information
Print (" please enter the student information: ")

Name=input (" please enter the student's name: ")

Sex=input (" please enter the student gender: ")

Yuwen=input (" please input language achievement: ")

Shuxue=input (" please enter the mathematics performance: ")
Temp_mes=[] # define a single student information list temporarily, contains the information input

# will increase student information to the list of temporary individual student information
Temp_mes. Append (" sex: "+ sex)
Yuwen temp_mes. Append (" : "+ yuwen)
Shuxue temp_mes. Append (" : "+ shuxue)
Student. Append (" name: "+ name)
Student. Append (temp_mes) # will enter information about individual student information into big list
Print (" if students enter the press Q, if you don't lose the press any key to continue ")
# given out of circulation mechanism
Temp=input ()
If temp=="q" :
break
  • Related