1 都是面向对象编程,但是python是脚本语言,无需main函数 2 python不需要引用库,前不要定义类型,后不要; 列表可以用-x,表示倒数第几个,不能用a++ a = [1, 2, 3, 4, 5] # a[1]=2 a[-1]=5 len(a)=5 print(a[1]) print(a Read More
posted @ 2022-06-11 17:28 墙头一颗草 Views(917) Comments(0) Diggs(0) Edit