A detailed introduction to Guibs

Source: Internet
Author: User
Tags split words
Guibs's Python Learning _ variable # variables are named and used # variable names can only contain letters, numbers, and underscores. [cannot begin with a number] [001_send message X] [send_message_001]️# variable name cannot contain spaces, you can use underscores to split words [send message x][send_message]️# cannot use Python keyword and function name as variable name # variable name should be short and descriptive such as name: [N x] [Name]️# Note the use of L and O, some fonts will be associated with 1 and &

1. Guibs Python Learning _ variables

Summary: variable naming and use # variable names can only contain letters, numbers, and underscores. [cannot begin with a number] [001_send message X] [send_message_001]️# variable names cannot contain spaces, you can use underscores to split words [send message x][send_message]️# cannot use Python keywords and function names as variable names

2. Guibs Python Learning _ string

Introduction: # string # in Python, the string is enclosed in quotation marks. Quotation marks can be single or double quotes "This is a string"

3. Guibs's Python Learning _ number

Introduction: # number # integer # in Python, you can add (+) subtract (-) multiply (*) in addition to (/) modulo (%) [balance] (*)

4. Guibs's Python Learning _python Zen

Description: The Zen of Python, by Tim Peters,guibs's Python learning _python Zen

5. Guibs Python Learning _ list

Brief introduction:

6. Guibs Python Learning _ tuples

Summary: # tuple # tuples are equivalent to immutable lists, using parentheses ()

7. Guibs's Python learning _if

Description: # If # If you control the block of code by indenting if # conditional_test: # do something

8. Guibs's Python Learning _ Dictionary

Summary: Dictionary # Python Dictionary is a series of key-value pairs. # between the key and the value between: delimited, key-value pair used, delimited

9. Guibs's Python learning _while&input

Introduction: Guibs Python learning _while&input Strength Code, there is a need to refer to the following

Guibs Python Learning _ function

Introduction: This chapter describes the Guibs Python learning _ Function Example code, there is a need to refer to the following

Related Article

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.