开发者

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

开发者 https://www.devze.com 2023-02-10 07:39 出处:网络
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.

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

精彩评论

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