Supplementary content

1. Operators Expanding

in

  1 value = " I am Chinese "
   2  
  3 # determine whether the value of the Chinese on behalf of that string, " China " is a value refers to the generation of sub-sequences.
  . 4 V1 = " China " in value
   . 5  
  . 6 example
   . 7 Content = INPUT ( " Please enter Content: ")
   . 8  IF " refund :" Content in
   . 9      Print ( " contains sensitive characters ")
 10 # Example 2
 . 11 the while True:
 12 is      content = input ( " Please enter the content: ")
 13      IF " refund " in contet:
         ( " Contains sensitive characters ")
 15    the else :
 16        Print (Content)
 . 17        BREAK

Guess you like

Origin www.cnblogs.com/fkdby/p/10983098.html