A_Byte_Of_Python_1
来源:互联网 发布:java识别图片中文文字 编辑:程序博客网 时间:2024/06/18 17:18
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
- Simple
- Easy to Learn
- Free and Open Source
- High-level Language
- Portable
- Interpreted
- Object Oriented
- Extensible
- Embeddable???
- Extensive Libraries
Chapter 4. First Steps
- Vim
- PyCharm
- 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)
阅读全文
0 0
- A_Byte_Of_Python_1
- 比特币的原理及运作机制
- codeforces 827D(kruskal+倍增+并查集)
- mysql_触发器
- python从入门到实践:10-6 加法运算
- Linux功耗管理(23)_Linux PM QoS framework(2)_PM QoS class
- A_Byte_Of_Python_1
- 二、log4j配置文件说明
- List<T>排序工具类---泛型和反射实现
- normalize 函数使用
- 0-1背包
- Java注解
- 解决 Successfully created project '' on GitHub, but initial push failed: Could not read from remote re
- SpringMVC整合UEditor
- 决策树