File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
### 使用字符串
4
4
5
- 第二次世界大战促使了现代电子计算机的诞生,当初的想法很简单,就是用计算机来计算导弹的弹道,因此在计算机刚刚诞生的那个年代,计算机处理的信息主要是数值,而世界上的第一台电子计算机ENIAC每秒钟能够完成约5000次浮点运算。随着时间的推移,虽然对数值运算仍然是计算机日常工作中最为重要的事情之一,但是今天的计算机处理得更多的数据都是以文本信息的方式存在的,而Python表示文本信息的方式我们在很早以前就说过了,那就是字符串类型。所谓** 字符串** ,就是由零个或多个字符组成的有限序列,一般记为![ $$ {\displaystyle s=a_{1}a_{2}\dots a_{n}(0\leq n \leq \infty)} $$ ] ( ./res/formula_5.png ) 。
5
+ 第二次世界大战促使了现代电子计算机的诞生,最初的目的用计算机来快速的完成导弹弹道的计算,因此在计算机刚刚诞生的那个年代,计算机处理的信息基本上都是数值型的信息,而世界上的第一台电子计算机ENIAC每秒钟能够完成约5000次浮点运算。随着时间的推移,虽然数值运算仍然是计算机日常工作中最为重要的事情之一,但是今天的计算机更多的时间需要处理的数据可能都是以文本的方式存在的,如果我们希望通过Python程序操作本这些文本信息,就必须要先了解字符串类型以及与它相关的知识。
6
+
7
+ 所谓** 字符串** ,就是由零个或多个字符组成的有限序列,一般记为![ $$ {\displaystyle s=a_{1}a_{2}\dots a_{n}(0\leq n \leq \infty)} $$ ] ( ./res/formula_5.png ) 。
6
8
7
9
我们可以通过下面的代码来了解字符串的使用。
8
10
Original file line number Diff line number Diff line change 23
23
1 . 开发中用过哪些标准库和三方库。
24
24
25
25
> 标准库:sys / os / re / math / random / logging / json / pickle / shelve / socket / datetime / hashlib / configparser / urllib / itertools / collections / functools / threading / multiprocess / timeit / atexit / abc / asyncio / base64 / concurrent.futures / copy / csv / operator / enum / heapq / http / profile / pstats / ssl / unitest / uuid
26
+ >
27
+ > 三方库:openpyxl / xlrd / xlwt / PyPDF2 / ReportLab / PyYAML / jieba / pillow / requests / urllib3 / responses / aiohttp / BeautifulSoup4 / lxml / pyquery / PyMySQL / psycopg2 / redis / PyMongo / Peewee / SQLAlchemy / alipay / PyJWT / itsdangerous / celery / flower / elasticsearch-dsl-py / PyCrypto / Paramiko / logbook / nose / pytest / coverage / Selenium / lineprofiler / memoryprofiler / matplotlib / pygal / OpenCV
26
28
27
29
2 . 装饰器的作用、原理和实现。
28
30
You can’t perform that action at this time.
0 commit comments