2024-10-03 19:28:08 发布
网友
在SharpDevelop中,我想创建一个包含静态方法void Main(string[]args)的dll。在
有人说我应该使用decorator来限制IronPython中的函数。在
我找到了“@staticmethod”,但其他的“void”、“string[]args”,如何限制它们?在
class MyClass: def __init__(self): pass @staticmethod def Main(args): pass
Python没有返回类型。不要还任何东西。您可以通过使用空return语句或根本不使用return语句来完成此操作
Python没有返回类型。不要还任何东西。您可以通过使用空return语句或根本不使用return语句来完成此操作
相关问题 更多 >
编程相关推荐