文章90
标签1
分类38

入门print

 #字符串
#数字直接写,字符串需要加""
print(520)
print("hellow! \n world")
#表达式5+2=7
print(5+2)

#写入数据文件
#打开文件 open("路径")
fp=open("./test.txt","a+")
print("123456",file=fp)
#关闭文件文件名.close()
fp.close()

    0 评论

    ">