V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  Matrix24  ›  全部回复第 1 页 / 共 2 页
回复总数  22
1  2  
@ospider 十分感谢!!就缺了这一环~
2014-04-12 21:41:08 +08:00
回复了 eric_zyh 创建的主题 问与答 一个数学方程式求解: 2^(x-3) = x
输入:Solve[2^(x - 3) == x, x]
结果:{{x -> -(ProductLog[-(Log[2]/8)]/Log[2])}, {x -> -(
ProductLog[-1, -(Log[2]/8)]/Log[2])}}
@zentorwie 我在搜索解决方式的时候,也看到了这篇文章
2014-03-12 20:21:59 +08:00
回复了 Rand01ph 创建的主题 程序员 毕业了才知道一切都是自作孽
@kurtrossel 笑死
@unfurl
[Warn信息]:

W: no module named matplotlib.rcParams (top-level import by matplotlib.figure)
W: no module named glib.Idle (top-level import by gobject)
W: no module named nt (conditional import by __main__)
W: no module named numpy.not_equal (top-level import by numpy.numarray.ufuncs)
W: no module named setuptools.Command (top-level import by setuptools.command.setopt)
W: no module named numpy.testing.Tester (top-level import by numpy.polynomial)
W: no module named numpy.compat.formatargspec (top-level import by numpy.ma.core)
W: no module named glib.Source (top-level import by gobject)
W: no module named numpy.testing.Tester (top-level import by numpy.random)
W: no module named msvcrt (conditional import by getpass)
W: no module named java (conditional import by xml.sax._exceptions)
W: no module named numpy.core.ravel (top-level import by numpy.linalg.linalg)
W: no module named numpy.core.atleast_3d (top-level import by numpy.lib.shape_base)
W: no module named matplotlib.MatplotlibDeprecationWarning (top-level import by matplotlib.legend)
W: no module named numpy.core.zeros (delayed import by numpy.testing.utils)
W: no module named numpy.compat.bytes (top-level import by numpy.core.numerictypes)
W: no module named setuptools.Command (top-level import by setuptools.command.easy_install)
W: no module named numpy.core.flatnonzero (top-level import by numpy.linalg.linalg)
W: no module named numpy.tanh (top-level import by numpy.numarray.ufuncs)
W: no module named PyQt4._qt (top-level import by PyQt4.QtCore)
W: no module named numpy.sinh (top-level import by numpy.numarray.ufuncs)
W: no module named glib.SPAWN_LEAVE_DESCRIPTORS_OPEN (top-level import by gobject)
W: no module named numpy.core.isscalar (delayed import by numpy.testing.utils)
W: no module named numpy.left_shift (top-level import by numpy.oldnumeric.ufuncs)
W: no module named Pyrex (delayed, conditional import by numpy.distutils.command.build_src)
W: no module named matplotlib.backends.pylab_setup (top-level import by matplotlib.pyplot)
W: no module named numpy.subtract (top-level import by numpy.numarray.ufuncs)
W: no module named matplotlib.rcParams (top-level import by matplotlib.ticker)
W: no module named numpy.arcsin (top-level import by numpy.numarray.ufuncs)
W: no module named numpy.lexsort (top-level import by numpy.numarray.functions)
W: no module named numpy.core.intc (top-level import by numpy.linalg.linalg)
W: no module named numpy.ndarray (top-level import by numpy.ma.extras)
W: no module named numpy.greater_equal (top-level import by numpy.oldnumeric.ufuncs)
W: no module named numpy.logical_not (top-level import by numpy.oldnumeric.ufuncs)
W: no module named Carbon (delayed import by plistlib)
W: no module named matplotlib.rcParams (top-level import by matplotlib.axis)
W: no module named _winreg (top-level import by distutils.msvccompiler)
W: no module named numpy.swapaxes (top-level import by numpy.oldnumeric.misc)
W: no module named numpy.diagonal (top-level import by numpy.numarray.functions)
W: no module named matplotlib.delaunay.__version__ (delayed, conditional import by matplotlib.mlab)
W: no module named numpy.arccos (top-level import by numpy.numarray.ufuncs)
W: no module named numpy.core.hstack (top-level import by numpy.lib.polynomial)
W: no module named numpy.sinh (top-level import by numpy.oldnumeric.ufuncs)
W: no module named numpy.core.max (conditional import by numpy)
W: no module named numpy.distutils.fcompiler.show_fcompilers (delayed import by numpy.distutils.interactive)
W: no module named numpy.core.concatenate (top-level import by numpy.fft.helper)
W: no module named numpy.arcsinh (top-level import by numpy.numarray.ufuncs)
W: no module named numpy.linalg.lstsq (top-level import by numpy.lib.polynomial)
W: no module named numpy.greater (top-level import by numpy.oldnumeric.ufuncs)
W: no module named numpy.core.atleast_2d (top-level import by numpy.lib.function_base)
W: no module named vms_lib (delayed, conditional import by platform)
W: no module named glib.set_application_name (top-level import by gobject)
W: no module named numpy.floor_divide (top-level import by numpy.numarray.ufuncs)
W: no module named numpy.testing.Tester (conditional import by numpy.distutils)
W: no module named numpy.less (top-level import by numpy.oldnumeric.ufuncs)
W: no module named matplotlib.rcParamsDefault (top-level import by matplotlib.pyplot)
W: no module named numpy_distutils (delayed, conditional import by numpy.f2py.diagnose)
W: no module named glib.MainContext (top-level import by gobject)
W: no module named numpy.ndarray (top-level import by numpy.ma.mrecords)
W: no module named matplotlib.rcParams (top-level import by matplotlib.text)
W: no module named numpy.eye (delayed import by numpy.core.numeric)
W: no module named numpy.searchsorted (top-level import by numpy.numarray.functions)
W: no module named numpy.core.
2014-03-11 22:09:48 +08:00
回复了 sneezry 创建的主题 iDev 没有 MacBook 的前提下有什么比较好的方法使用 xcode 开发 iOS 吗
Mac mini,至于虚拟机,还是玩玩吧,不能干活
在GNOME3中搜索 nm
2014-03-03 08:27:14 +08:00
回复了 artwalk 创建的主题 程序员 大家平时怎么码代码的?
第2种,我是业余选手
@binux 你的意思是说,所有定义的self.XXX是函数内的(self)决定的,突然明白了。哈哈,被打醒了,ThankYou,谢谢你的耐心~~
@binux
class AAA():
········self.a='5'
········def go(self):
················pass


b=AAA()
b.a

---------
为什么不可以在class内和def平行关系,定义self.XXX这种实例化变量?
@binux 其实我就想问一句,class下的def XXX里面的定义的变量,加self和不加有什么区别,它是不是和其他的一样?

因为我现在认为__init__()下是一个特殊的区域,在这里定义self.xxx是正常可以引用的实例化变量
但是在class下和def并列的时候,定义 self.XX就不会引用成功
同样,我怀疑在def内,变量加和不加self都不同。

我有点混乱,求指点
@binux 哈哈,文章还是有瑕疵。除了这个地方没说。你知道么,可爱的网友?
为毛不可以修改问题。问题是这样子的:
具体的如下:
class AAA(object):
····def Go(self):
········self.one = 'hello'

和下面的
class AAA(object):
····def Go(self):
········one = 'hello'

两者的one,有什么区别?
2014-02-20 18:00:16 +08:00
回复了 lintiven49 创建的主题 Python 平时怎么提高自己的python(或者能力)好? 求指导!
@dylanninin 感谢,受用了
2014-02-13 22:45:36 +08:00
回复了 menic 创建的主题 程序员 python 大拿和 python say goodbye 了,哎
感谢他对Python社区做的贡献
2013-12-30 18:38:09 +08:00
回复了 cchange 创建的主题 Python Python有开发桌面程序的开源项目吗? 想参考一下
第一次听说快手,请问快手可以跨平台么?很感兴趣,想了解
@xavierskip 我在OS X上打包的程序,运行没有反应,可用Py2app却可以,请问为什么?
2013-12-30 15:38:43 +08:00
回复了 hedaors 创建的主题 Python 像 Dropbox 這樣的 python 程序是如何打包的?
看到知乎上有类似的解答
用到过的 Python 技术包括:

Twisted:基于事件的网络框架,他们用这个做了服务器端推送通知服务
PyObjC:OS X 客户端系统调用
PyWin32:Windows 客户端系统调用
WxPython:跨平台客户端界面
ctypes:外部功能调用,用来调用系统功能(如 Windows 的 DLL)
py2exe:Windows 平台打包工具
py2app:OS X 平台打包工具


PyCon 2011 上 Dropbox 的 Rian Hunter 对此有过介绍


http://www.zhihu.com/question/19550782?q=Dropbox
1  2  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2632 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 26ms · UTC 11:13 · PVG 19:13 · LAX 03:13 · JFK 06:13
Developed with CodeLauncher
♥ Do have faith in what you're doing.