RT。最好附上執行個體或虛擬碼,方便大家交流哈!來自Quora的相同問題:Python (programming language): What are the Python features you wish you'd known earlier?回複內容:Hidden features of Python比較符連寫:>>> x = 5>>> 1 x 10True>>> 10 > x 9True測試程式執行的時間import timeclass Timer: def
RT。我之前想學習這些架構,但是學了一些皮毛之後發現有點學不下去,總感覺少了哪方面的知識。想問問,學習這些架構需要哪方面的知識?該如何正確的學習?回複內容:我覺得 @盛迪說的對,先學,如果學的比較吃力就硬著頭皮學,在學的過程中才能發現哪些知識點自己不懂,把不懂的知識點羅列起來,比如在學習Tornado時覺得非同步,這個東西不太明白,就可以通過這一個知識點來展開如下學習計劃: Don't be afraid,硬著頭皮邁出第一步。google
經常看到ruby和python在一起被比較,也有人說ruby是更像perl和python的結合體,那麼ruby更像python還是perl呢?回複內容:看 matz 是怎麼說的:http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/179642Ruby is a language designed in the following steps: * take a simple lisp language (like one
只瞭解基本的python文法。看了the foudation of python web programming的web部分,感覺沒啥收穫。wsgi在看,但看不懂。。有點不知道從何學起了。。。大蝦們指點一下吧。回複內容:推薦Flask Web Development這本書,循序漸進每一小節都有git tag,很方便看代碼。不要太關注細節,如你提到的wsgi,先整體,後細節,而疑惑就需要自己進入源碼找答案了。要深入學習還是需要看源碼,瞭解flask的原理。比如context,request,
回複內容:提供兩個連結:1. Why does the indexing start with zero in 'C'? (http://stackoverflow.com/questions/7320686/why-does-the-indexing-start-with-zero-in-c)2. Why numbering should start at zero, by Dijkstra. (http://www.cs.utexas.edu/users/EWD/ewd08xx/EWD831