Skip to content

Commit 70e63ac

Browse files
committed
ch1
1 parent 9b6a4e7 commit 70e63ac

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+1370
-1422
lines changed

rst/ch02/19.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
22 计算表达式
2+
-------------
3+
4+
将字符串str 当成有效的表达式来求值并返回计算结果取出字符串中内容
5+
6+
.. code:: python
7+
8+
In [1]: s = "1 + 3 +5"
9+
...: eval(s)
10+
...:
11+
Out[1]: 9
12+
13+
.. _header-n1382:

0 commit comments

Comments
 (0)