摘要: 输出函数 1、print()函数提供了输出功能,可以输出想输出的任意字符串,例如上面一节说到的print('hello word'); 2、若想输入多个字符串,也可用print()函数,将多个字符串用逗号隔开即可,例如: print('freezing is ','learning','Englis 阅读全文
posted @ 2018-02-28 17:05 freezing1115 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 1、新建hello.py文件,内容输入print(‘hello word’) 2、在编辑器界面按ctrl+F5,查看输出结果,可以看到控制台输出窗口显示hello world字样 4、python程序的文件名必须要以py作为后缀名,并且名字未数字、字母或下划线的组合 阅读全文
posted @ 2018-02-28 14:17 freezing1115 阅读(146) 评论(0) 推荐(0) 编辑
摘要: python语言默认为Cpython解释器,一般情况下,在正确安装python之后便自动安装了cpython解释器,我们在命令行中输入python语法就是通过cpythoin解释器进行编译执行的。 python语言还有很多其他的语言解释器,例如IPython、Pypy、Jython(在java平台下 阅读全文
posted @ 2018-02-28 14:06 freezing1115 阅读(205) 评论(0) 推荐(0) 编辑
摘要: python安装 阅读全文
posted @ 2018-02-28 11:30 freezing1115 阅读(246) 评论(0) 推荐(0) 编辑