推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
chu8129
V2EX  ›  Python

求問有什么方法可以实现: Python 调用 armeabi-v7a 下的 so 的文件?

  •  
  •   chu8129 ·
    chu8129 · Oct 30, 2017 · 3126 views
    This topic created in 3123 days ago, the information mentioned may be changed or developed.

    求問有什么方法可以实现: ##python 调用 armeabi-v7a 下的 so 的文件?##

    9 replies    2017-10-31 17:32:49 +08:00
    xingzhi1990
        1
    xingzhi1990  
       Oct 30, 2017
    直接 import 不行吗
    pynix
        2
    pynix  
       Oct 30, 2017
    ffi 应该有 armv7 的实现。。。
    chinawrj
        3
    chinawrj  
       Oct 30, 2017
    python 调用 c 啊。
    ysc3839
        4
    ysc3839  
       Oct 30, 2017
    import ctypes
    babyrjw
        5
    babyrjw  
       Oct 30, 2017
    Android 么? 我觉得 PC 上应该不行,指令集不一样,可以考虑在 android 上跑 python 来调用,能不能调用成功是个问题。可以考虑在新的 apk 里调用 so,难度要低一点,一般 so 都会做一些简单的验证~
    chu8129
        6
    chu8129  
    OP
       Oct 31, 2017
    @xingzhi1990 不行,so 文件不能这么暴力直接
    chu8129
        7
    chu8129  
    OP
       Oct 31, 2017
    @chinawrj 64 位 ubuntu 好多问题,泪
    chu8129
        8
    chu8129  
    OP
       Oct 31, 2017
    @pynix 好,多谢提醒,我试试
    chu8129
        9
    chu8129  
    OP
       Oct 31, 2017
    @babyrjw 我试试,多谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2665 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 15:31 · PVG 23:31 · LAX 08:31 · JFK 11:31
    ♥ Do have faith in what you're doing.