读书笔记之Python基础1.1,

来源:互联网 发布:日本js标准与国内标准 编辑:程序博客网 时间:2024/06/06 19:59

1.Python编码中文时,要记得加  

#coding == UTF-8or# -*- coding : UTF-8 -*-
<span style="font-family: Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);">2.Python有三种coding方式,一是直接在交互式编程客户端写代码,二是写代码在test.py文件中,然后在客户端Python test.py,三比较复杂,是在test.py文件头部加入Python解释器的位置(eg. #!/user/bin/python ),然后在客户端</span>

$ chomd +x test.py$ ./test.py
<span style="font-family: Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);">3.Python的标识符是区分大小写的;关于_下划线有不同的解释意义,等到之后详细学习再来补充(挖个坑)!!!!!!</span>

4.

0 0
原创粉丝点击