当前位置:首页>python>初识 python

初识 python

  • 2026-10-11 08:33:27
初识 python

#变量
a=10
#列表
arr=[1,2,3]
#字典
user={"name":"Tom "}
#函数
def sum(a=1,b=2):
return a+b

#读取文件
with open("test.ttxt") as f:
print (f.read())

最新文章

随机文章