mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-24 17:15:05 +08:00
16 lines
143 B
Python
16 lines
143 B
Python
|
import nonebot
|
||
|
|
||
|
export = nonebot.export()
|
||
|
export.foo = "bar"
|
||
|
export["bar"] = "foo"
|
||
|
|
||
|
|
||
|
@export
|
||
|
def a():
|
||
|
pass
|
||
|
|
||
|
|
||
|
@export.sub
|
||
|
def b():
|
||
|
pass
|