Skip to content

liweinan/python-practice

Repository files navigation

安装pipenv

$ pip install pipenv

安装本项目的依赖包:

$ pipenv install

进入到pipenv提供的虚拟环境:

$ pipenv shell
Launching subshell in virtual environment…
 . /Users/weli/.local/share/virtualenvs/python-practice-rOVm0gl7/bin/activate
$  . /Users/weli/.local/share/virtualenvs/python-practice-rOVm0gl7/bin/activate
(python-practice) $

试着执行其中的代码:

(python-practice) $ python structbuf.py
Original: (1, b'ab', 2.7)

ctypes string buffer
Before : b'000000000000000000000000'
After   : b'0100000061620000cdcc2c40'
Unpacked: (1, b'ab', 2.700000047683716)

array
Before : b'000000000000000000000000'
After   : b'0100000061620000cdcc2c40'
Unpacked: (1, b'ab', 2.700000047683716)
(python-practice) $

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published