Category: python basics

Traversal of python list (list) 0

Traversal of python list (list)

Using the for loop in python can [traverse] the list very well, so as to operate on each value of the list, or you can use the traversal of two lists to turn them...

Usage of format function in Python 0

Usage of format function in Python

Format advantages format is a new method of formatting [strings] in python2.6 . Compared with the old % format method, it has many advantages.[] You don’t need to worry about the data type. In...

Summary of print usage in python 0

Summary of print usage in python

Comma [separator] Output strings can be concatenated together by commas, separated from each other by a space, and terminated by a newline character. [Formatted output] It can be output through the string format [operator]...