File tree Expand file tree Collapse file tree 3 files changed +3507
-16
lines changed
Expand file tree Collapse file tree 3 files changed +3507
-16
lines changed Original file line number Diff line number Diff line change 11import pandas as pd
2+
23# string "Hello World"
34
45for i in range (1000 ):
5- print ("Hello World" )
6+ print ("Hello World" )
67
78accept
89# world string
1213import 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
1819cur = conn .cursor ()
1920
2021# execute a statement
21- cur .execute ('select * from table' )
22-
22+ cur .execute ("select * from table" )
Original file line number Diff line number Diff line change 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 ())
You can’t perform that action at this time.
0 commit comments