A_Byte_Of_Python_1
2017-08-30 20:03
411 查看
A byte of Python
Success in life is a matter not so much of talent and opportunity as of concentration and perseverance. —- C.W. Wendte
Chapter 2. Introduction
Features of Python
SimpleEasy to Learn
Free and Open Source
High-level Language
Portable
Interpreted
Object Oriented
Extensible
Embeddable???
Extensive Libraries
Chapter 4. First Steps
VimPyCharm
Emacs
Chapter 5. Basics
print("Hello, World!") #Note that print is a statement
Constant:
Numbers: (integers and float)
Strings: (immutable)
Single quote
double quote
triple quote: for multi-line string.
format method
format()
'{0:.3f}'.format(1.0/3)
'{0:_^11}'.format('Hello')
escape sequences:\\ \n \t
Raw string: no special processing
Variable:
Data Types:
numbers
strings
classes
Object
#程序可以换行 s = 'this is a string.\ This continues the string.' print(s) #same as print(\ s)
相关文章推荐
- 【byte-of-python 学习笔记】——DOS运行python
- A Byte of Python
- A Byte of Python 笔记(4)控制流:if、for、while、break、continue
- A Byte of Python 笔记(7)数据结构:列表、元组、字典,序列
- python读书笔记-《A Byte of Python》中文第三版后半部分
- (二)《A Byte of Python》 ——运算符与表达式
- A Byte of Python(简明Python教程) for Python 3.0 下载
- OK - A byte of python - 读书笔记
- a byte of python3 中文
- A Byte of Python 笔记(9) 面向对象编程
- a byte of python for python 3 I_NBFA中译版 - 译序
- A Byte of Python 笔记(12)python 标准库:sys、os,更多内容
- Byte of Python
- 【A ByteOf Python2.7】第9章 数据结构
- (六)《A Byte of Python》——数据结构
- 《A Byte of Python》读书笔记
- A Byte of Python (for Python 3.0) 下载
- 【A ByteOf Python2.7】第10章 解决问题——编写一个Python脚本
- A Byte of Python(简明Python教程) for Python 3.0 下载
- 终于看完《A Byte of Python》,转入下一本书《Python基础教程(第2版)》