2020-10-19 21:08:55

This commit is contained in:
wizardforcel
2020-10-19 21:08:55 +08:00
parent 7f63048035
commit ab0caba1f0
140 changed files with 3982 additions and 3982 deletions

View File

@@ -2,7 +2,7 @@
In [1]:
```
```py
import sys
```
@@ -13,14 +13,14 @@ import sys
In [2]:
```
```py
%%writefile print_args.py
import sys
print sys.argv
```
```
```py
Writing print_args.py
```
@@ -29,12 +29,12 @@ Writing print_args.py
In [3]:
```
```py
%run print_args.py 1 foo
```
```
```py
['print_args.py', '1', 'foo']
```
@@ -45,7 +45,7 @@ In [3]:
In [4]:
```
```py
import os
os.remove('print_args.py')
@@ -57,7 +57,7 @@ os.remove('print_args.py')
In [5]:
```
```py
try:
x = 1/0
except Exception:
@@ -65,7 +65,7 @@ except Exception:
```
```
```py
(<type 'exceptions.ZeroDivisionError'>, ZeroDivisionError('integer division or modulo by zero',), <traceback object at 0x0000000003C6FA08>)
```
@@ -88,14 +88,14 @@ except Exception:
In [6]:
```
```py
sys.path
```
Out[6]:
```
```py
['',
'C:\\Anaconda\\python27.zip',
'C:\\Anaconda\\DLLs',
@@ -125,14 +125,14 @@ Out[6]:
In [7]:
```
```py
sys.platform
```
Out[7]:
```
```py
'win32'
```
@@ -140,14 +140,14 @@ Out[7]:
In [8]:
```
```py
sys.getwindowsversion()
```
Out[8]:
```
```py
sys.getwindowsversion(major=6, minor=2, build=9200, platform=2, service_pack='')
```
@@ -157,26 +157,26 @@ sys.getwindowsversion(major=6, minor=2, build=9200, platform=2, service_pack='')
In [9]:
```
```py
sys.version
```
Out[9]:
```
```py
'2.7.10 |Anaconda 2.3.0 (64-bit)| (default, May 28 2015, 16:44:52) [MSC v.1500 64 bit (AMD64)]'
```
In [10]:
```
```py
sys.version_info
```
Out[10]:
```
```py
sys.version_info(major=2, minor=7, micro=10, releaselevel='final', serial=0)
```