Learning python - variable and simple types (b)

The study notes Source: Portal

1. Comment

Single-line comments; multiline comments

2. Basic Data Type: Integer String Float

String itself contains a single or double quotes, treatment:

String concatenation: Use the + 

Digital mosaic string: need to use str () type conversion

Get user input: input () function

String formatting:

 

Guess you like

Origin www.cnblogs.com/wang-mengmeng/p/11261272.html