2006-03-07から1日間の記事一覧
import sys,os class ps1: def __init__(self): self.line = -1 def __repr__(self): self.line += 1 return "current: %s, inputted line(s):%3d >>>" % (os.getcwd(),self.line) sys.ps1 = ps1()
Welcome to Python.org すごいすっきりしてるよ.
広告:本ブログで紹介している書籍等商品の紹介でAmazonアソシエイトを利用していることがあります。
import sys,os class ps1: def __init__(self): self.line = -1 def __repr__(self): self.line += 1 return "current: %s, inputted line(s):%3d >>>" % (os.getcwd(),self.line) sys.ps1 = ps1()
Welcome to Python.org すごいすっきりしてるよ.