Rails 请教大家 rubypython 如何 使用 From…import

ghn645568344 · July 18, 2017 · Last by ghn645568344 replied at July 20, 2017 · 1901 hits

RT 在使用 rubypython 时,想调用一个离线导入的 python 包 python 可以直接

from zmop.ZmopClient import ZmopClient
from zmop.request.ZhimaCustomerCertificationInitializeRequest import *

各种找不到答案,请教大家,使用 rubypython 该怎么达到上面的效果。。。🙏

ruby 没有这种语法

你大概可以这样模拟

require 'foo/bar'

Bar = Foo::Bar

b = Bar.new

Reply to Rei

唔... 那没玩过了

这项目很老了吧。。

Reply to pynix

是啊。已经放弃了

Reply to Rei

是的,已经放弃了,直接用 %x 了。。。不折腾啦

You need to Sign in before reply, if you don't have an account, please Sign up first.