sp seminar cancho. index 0x01. rss reader 0x02. python 0x03. django 0x04. schedule

22
SP Seminar cancho

Upload: peter-butler

Post on 13-Dec-2015

242 views

Category:

Documents


1 download

TRANSCRIPT

SP Seminar

cancho

Index0x01. RSS Reader0x02. Python0x03. Django0x04. Schedule

RSS Reader

RSS

Re-allySimple

Syndica-tion

Bookmark

Blog

Board

News

RSS

Blog

Board

News

RSS Reader

RSS Reader

python

Scriptaux

|ps

grepvim

python vs

print reduce(operator.mul, [i for i in range(1, 10)])

…int result=1;for(int i=1;i<10;i++)

result *= i;System.out.println(result);

python

myFile = open(“test.txt”)

Import java.io.*;…BufferedReader myFile =

new BufferedReader(new FileReader(“test.txt”));

python

aList = []aList.append(5)aNumber = aList[0]

…public Vector<Integer> aList = new Vec-tor<Integer>();aList.addElement(5);public int aNumber = aList.getElement(0);

python

Python canExpress muchIn a few words

python vs

table = [['cancho', 100], ['pipoket', 0]]

print ''' <html> <head> <title>%s</title> </head> <body>''‘

for row in table: print '<tr>' for col in table[row]: print '<td>%s</td>' % col print '</tr>‘

print ''' </body> </html>''' % (title, body)

python

cancho 100

pipoket 0

print ''' <html> <head> <title>%s</title> </head> <body> Hello World! </body> </html>''' % title

python

Hello World!

cancho 100

pipoket 0

django

Do notRe-peatYour-self

djangoVi

ew

Controller

Model

DATALOGICUI

Isolate logic from UI

Con-troller

django

Hello World!

cancho 100

pipoket 0View

Model

6/22 ~Mon/Wed 10:00 P.M.Bring laptop on Wed

Sched-ule