Skip to content

Commit 8bdec69

Browse files
committed
mv folder
1 parent 8c8346c commit 8bdec69

8,554 files changed

Lines changed: 1309655 additions & 94 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@
4444

4545
21. 單元21 - Django 網站前後端分離與 Restful API
4646

47-
22. 單元22 - 實戰範例:OpenCook 食譜分享社群網站開發實務(django-markdown)
47+
22. 單元22 - 實戰範例:OpenCook 食譜分享社群網站開發實務
4848

49-
23. 單元23 - 實戰範例:部屬應用程式到 Heroku 雲端伺服器(ga/og tag/disqus)
49+
23. 單元23 - 實戰範例:部屬應用程式到 Heroku 雲端伺服器
5050

5151
24. 單元24 - Python Django Facebook API 整合入門(募資金額 200% 解鎖)
5252

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Hello World!!!
2+
Hello World!!!
3+
Hello World!!!
4+
Hello World!!!

Unit05/examples/FileHero/index.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import os
2+
3+
filename = 'hello_workd.txt'
4+
5+
with open(filename, 'r') as f:
6+
result = f.readlines()
7+
print(result)
128 KB
Binary file not shown.

Unit05/examples/SimpleDB/index.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import sqlite3
2+
3+
conn = sqlite3.connect('SimpleDB.sqlite')
4+
5+
cursor = conn.cursor()
6+
7+
#sqlstr = 'INSERT INTO user ("id", "username") VALUES ("1", "Jack")'
8+
9+
#cursor.execute(sqlstr)
10+
11+
#cursor = conn.execute('SELECT * FROM user')
12+
#rows = cursor.fetchall()
13+
14+
#cursor = conn.execute('UPDATE user SET username="Jack" WHERE username="Leo"')
15+
16+
cursor.execute('DELETE FROM user WHERE username="Jack"')
17+
18+
#print(rows)
19+
20+
21+
22+
conn.commit()
23+
24+
conn.close()
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def print_helloworld():
2+
print('Hello World!!')
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from mypackage.awesome import print_awesome
2+
from mypackage.happy import print_happy
3+
4+
print_awesome()
5+
print_happy()

Unit06/examples/ModuleHero/mypackage/__init__.py

Whitespace-only changes.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def print_awesome():
2+
print('Awesome!!!')
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def print_happy():
2+
print('happpy~~~~~')

0 commit comments

Comments
 (0)