Python
1.py
import lib obj = lib.A() print(obj.a())
lib.py
class A: def a(self): return 'a'
Ruby
1.rb
require_relative 'lib' obj = Lib::A.new() p obj.a()
lib.rb
module Lib class A def a() return 'a' end end end
import lib obj = lib.A() print(obj.a())
class A: def a(self): return 'a'
require_relative 'lib' obj = Lib::A.new() p obj.a()
module Lib class A def a() return 'a' end end end
egoing |
현재 버전 | |
---|---|
선택 버전 |