Number separator
a=10_000_000a=1e7
Swap variable values
a,b=b,a
Continuous Comparison
if 90<=a<=100://......
String Multiplication
'-'*100
List concatenation
a=[0,1,2,3]b=[4,5,6,7]c=a+b
List slices
a[x:y]x is empty to start from the beginningy is empty means to endx and y can also be negative numbers, indicating the i-th penultimate
Pack and Unpack
a=[1,2]x,y=a
with statement
with open("xxx") as fp://....
List Comprehension
a=[i**2 for i in range(10)]
Excel1、 Turn the table into a
Catalog Task description Rel