#-*-coding:utf-8-*-"" "If there is a need for Chinese in the annotation, add the above code" "" Age = input (' How do you want to input number? ') Age
ten = Int (age) + print ' You are ' + str (AGE10) "" "Here you need to note that the output needs to convert Age10 to str" "Ages = 3 * ' 5 ' Print type (ages) "" "<type ' str ' >" "JACK1 = 3 * 5.0 print type (JACK1)" "<type ' str ' >" "" Print (' Jack ', ' Hello ', ' world ') prin T (' Jack ', ' Java ') # It's a line comment "" "That's a row and column note" "Print false = = False print false.
umber = input (' You input win number ') if number = = 10:print ' Yes ' elif number = 20: print ' No ' # is if two hopeyou = Raw_input (' Your name ') if hopeyou = = ' Jack ': print ' yes ' elif hopeyou = ' PCC ': print ' you name is ' + hopeyou elif hopeyou = ' kt ': print ' yes ' else:print ' hack ' # this is if elif pwd = Input (' What is the passwordl? ') if pwd = = ' Apple ': print ' win ' elif pwd = ' A ': print ' root ' else:print ' ou T '
Problem Description: Do not enclose quotes when you enter a string or char, depending on the author's use as if you were typing in the console while using Raw_input. But if you use input, you must use quotes