Python有自动完成功能的IDE 么?
生活随笔
收集整理的這篇文章主要介紹了
Python有自动完成功能的IDE 么?
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
1. 作為一種動(dòng)態(tài)語言,隨時(shí)隨地創(chuàng)建和使用變量是Python給我們帶來的巨大的便利。但是它也會(huì)使得程序不嚴(yán)謹(jǐn),某些錯(cuò)誤只有在運(yùn)行中才可能出現(xiàn)。所以,使用Python編程的時(shí)候,要對(duì)類型做到心里有數(shù)。這也使得Python的IDE工具無法提供便利的自動(dòng)完成等功能。
?
2. 編程的時(shí)候一定要注意類的命名,很難知道一個(gè)類是什么,這點(diǎn)不方便。
比如:
1 class observeStoReportData: 2 def __init__ (self, stoName, stoId, currentPrice, expectBuyPrice, origP, inhouse): 3 self.stoName_ = stoName 4 self.stoId_ = stoId 5 self.currentPrice_ = currentPrice 6 self.expectBuyPrice_ = expectBuyPrice 7 self.origP_ = origP 8 self.inhouse_ = inhouse 9 yesterdayP_ = 0.0然后調(diào)用的時(shí)候
1 for observeStoReportDataItem in self.observeStoList_:?
轉(zhuǎn)載于:https://www.cnblogs.com/xjsllll/archive/2013/04/03/2997276.html
總結(jié)
以上是生活随笔為你收集整理的Python有自动完成功能的IDE 么?的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: NodeJs事件
- 下一篇: 详解python实现FP-TREE进行关