Python daily __python

Source: Internet
Author: User
#-*-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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.