V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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
webjin1
V2EX  ›  Python

这个用 Python 怎么写?

  •  
  •   webjin1 · 2018-04-29 02:05:42 +08:00 · 1610 次点击
    这是一个创建于 2182 天前的主题,其中的信息可能已经有所发展或是发生改变。
    []+[]=8
    + +
    []-[]=6
    = =
    13 8

    求出[]里面的值
    TtiGeR
        1
    TtiGeR  
       2018-04-29 04:22:39 +08:00 via iPhone
    3.5 4.5
    9.5 3.5

    不知道怎么建模 因为是固定解 循环都没有… 方程一转换解就出来了

    整数还能假装不懂代数循环爆破

    不明白为什么一定要用编程的方法解这种题目
    necomancer
        2
    necomancer  
       2018-05-01 12:48:23 +08:00
    A = np.array([[1,1,0,0],[0,0,1,-1],[1,0,1,0],[0,1,0,1]])
    b = np.array([8,6,13,8])
    np.linalg.sovle(A,b)

    你是想写程序把这个方程的 A,b 求出来吗?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3511 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 04:42 · PVG 12:42 · LAX 21:42 · JFK 00:42
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.