开发者

How do you create and save .py file from the py console

Is there a built-in way to do this, or do i have to revert to using System.IO ?

ie: I want to define and save this class while usi开发者_开发百科ng the IronPython console.

class Hello:
   print "Hello StackOverflow viewer"

Is there a built-in way in IronPython to save this class to disk for future use?

Thanks a lot.!


Nope, you need to select the text, copy and paste it into something you can save.


can't idle save py files? honestly I can't remember :) -edit- oops, I just saw you're trying to use IronPython, sorry my bad

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜