⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test_mimewriter

📁 reduced python source for embedded apps
💻
字号:
test_MimeWriterFrom: bwarsaw@cnri.reston.va.usDate: Mon Feb 12 17:21:48 EST 1996To: kss-submit@cnri.reston.va.usMIME-Version: 1.0Content-Type: multipart/knowbot;    boundary="801spam999";    version="0.1"This is a multi-part message in MIME format.--801spam999Content-Type: multipart/knowbot-metadata;    boundary="802spam999"--802spam999Content-Type: message/rfc822KP-Metadata-Type: simpleKP-Access: read-onlyKPMD-Interpreter: pythonKPMD-Interpreter-Version: 1.3KPMD-Owner-Name: Barry WarsawKPMD-Owner-Rendezvous: bwarsaw@cnri.reston.va.usKPMD-Home-KSS: kss.cnri.reston.va.usKPMD-Identifier: hdl://cnri.kss/my_first_knowbotKPMD-Launch-Date: Mon Feb 12 16:39:03 EST 1996--802spam999Content-Type: text/islKP-Metadata-Type: complexKP-Metadata-Key: connectionKP-Access: read-onlyKP-Connection-Description: Barry's Big Bass BusinessKP-Connection-Id: B4KP-Connection-Direction: clientINTERFACE Seller-1;TYPE Seller = OBJECT    DOCUMENTATION "A simple Seller interface to test ILU"    METHODS            price():INTEGER,    END;--802spam999Content-Type: message/external-body;    access-type="URL";    URL="hdl://cnri.kss/generic-knowbot"Content-Type: text/islKP-Metadata-Type: complexKP-Metadata-Key: generic-interfaceKP-Access: read-onlyKP-Connection-Description: Generic Interface for All KnowbotsKP-Connection-Id: generic-kpKP-Connection-Direction: client--802spam999----801spam999Content-Type: multipart/knowbot-code;    boundary="803spam999"--803spam999Content-Type: text/plainKP-Module-Name: BuyerKPclass Buyer:    def __setup__(self, maxprice):        self._maxprice = maxprice    def __main__(self, kos):        """Entry point upon arrival at a new KOS."""        broker = kos.broker()        # B4 == Barry's Big Bass Business :-)        seller = broker.lookup('Seller_1.Seller', 'B4')        if seller:            price = seller.price()            print 'Seller wants $', price, '... '            if price > self._maxprice:                print 'too much!'            else:                print "I'll take it!"        else:            print 'no seller found here'--803spam999----801spam999Content-Type: multipart/knowbot-state;    boundary="804spam999"KP-Main-Module: main--804spam999Content-Type: text/plainKP-Module-Name: main# instantiate a buyer instance and put it in a magic place for the KOS# to find.__kp__ = Buyer()__kp__.__setup__(500)--804spam999----801spam999--

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -