Skip to content

Commit 135bf3a

Browse files
committed
daa
1 parent d8134c2 commit 135bf3a

File tree

3 files changed

+3507
-16
lines changed

3 files changed

+3507
-16
lines changed

1.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import pandas as pd
2+
23
# string "Hello World"
34

45
for i in range(1000):
5-
print("Hello World")
6+
print("Hello World")
67

78
accept
89
# world string
@@ -12,11 +13,10 @@
1213
import pandas as pd
1314

1415
# connect to Oracle
15-
conn = cx_Oracle.connect('user/password@host:port/sid')
16+
conn = cx_Oracle.connect("user/password@host:port/sid")
1617

1718
# create a cursor
1819
cur = conn.cursor()
1920

2021
# execute a statement
21-
cur.execute('select * from table')
22-
22+
cur.execute("select * from table")

all.py

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,26 @@
1-
with open("dbms/all.sql","w",encoding="utf-8") as f:
1+
with open("dbms/all.sql", "w", encoding="utf-8") as f:
22
f.write("")
33

44

5-
6-
for i in range(1,10):
5+
for i in range(1, 10):
76

87
if i == 5:
98

109
continue
11-
with open("dbms/all.sql","a",encoding="utf-8") as f:
12-
with open("dbms/" + str(i)+'.sql', 'r',encoding="utf-8") as f1:
10+
with open("dbms/all.sql", "a", encoding="utf-8") as f:
11+
with open("dbms/" + str(i) + ".sql", "r", encoding="utf-8") as f1:
1312
f.write(f1.read())
1413

1514

1615
# empty dbms/a.md
17-
with open("dbms/a.md","w",encoding="utf-8") as f:
16+
with open("dbms/a.md", "w", encoding="utf-8") as f:
1817
f.write("")
1918

20-
for i in range(2,5):
21-
22-
19+
for i in range(2, 5):
2320

2421
if i == 2:
2522

2623
continue
27-
with open("dbms/a.md","a",encoding="utf-8") as f:
28-
with open("dbms/" + str(i)+'t.md', 'r',encoding="utf-8") as f1:
29-
f.write(f1.read())
24+
with open("dbms/a.md", "a", encoding="utf-8") as f:
25+
with open("dbms/" + str(i) + "t.md", "r", encoding="utf-8") as f1:
26+
f.write(f1.read())

0 commit comments

Comments
 (0)