安裝ipython(一分鐘讀懂)

2021-10-24 19:40:16 字數 1100 閱讀 1847

公升級好pip 然後安裝ipython

cmd 裡面直接輸入

python -m pip install -

-upgrade pip

安裝ipython

cmd 裡面直接輸入

pip install ipython
進入ipython

cmd 裡面直接輸入

ipython
退出ipython

exit
使用ipython 展示會看的清晰些

c:\users\administrator>ipython

python 3.8

.0(tags/v3.

8.0:fa919fd, oct 14

2019,19

:21:23

)[msc v.

1916

32 bit (intel)],

'credits'

or'license'

for more information

ipython 7.18.1-

- an enhanced interactive python. type '?'

forhelp

.in [1]

:import sys

in [2]

: sys.path

out[2]

:[,,

,,,''

,,,'c:\\users\\administrator\\.ipython'

]in [3]

: exit

c:\users\administrator>

這裡上下兩個列表是一樣,但展示效果有區別

c:\users\administrator>c:\users\administrator\desktop\101505.py

['c:\\users\\administrator\\desktop',,

,,,]

c:\users\administrator>

一分鐘讀懂RPC協議

rpc是remote procedure call protoclo,稱為遠端過程呼叫協議,是一種通過網路從遠端電腦程式上請求服務,而不需要了解底層網路技術的協議。該協議允許執行於一台計算機的程式呼叫另一台計算機的程式。程式設計師無需編為網路互動功能編碼。主要功能是讓構建分布式計算 應用 更容易,在...

Python多重繼承 一分鐘讀懂

classa object deftest self print aaa classb object deftest self print b中的test def test2 self print bbb c c b pass class d a,b pass print c.bases 在pyth...

匿名函式 lambda(一分鐘讀懂)

匿名函式 lambda 1.一種快速定義單行的最小函式 2.是從lisp借用來的,可以用在任何需要函式的地方 3.省去函式定義的過程 4.只用一次 普通模式 from functools import reduce deffn1 x,y return x y d reduce fn1,1 2,3 4...