第一天python,为了让自己坚持下去,还是决定写点什么
1.下载(划掉)
2.学习的第一个函数:print()函数
#输出数字
print(42)
#输出字符串
print('helloworld')
#不换行输出
print('hello','world')
#换行输出
print('hello')
print('world')
#含运算符的表达式
print(3+1)
#输出到文件中
fp=open('D:/test.txt','a+')
print('helloworld',file=fp)
fp.close()
好了,现在该去专心打游戏了