FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
PythonTutorial/snaped.txt at master · DamiSofien/PythonTutorial · GitHub
DamiSofien
/
PythonTutorial
Public
forked from
hussien89aa/PythonTutorial
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
PythonTutorial
/
snaped.txt
Copy path
More file actions
More file actions
Latest commit
History
History
History
10 lines (10 loc) · 486 Bytes
Breadcrumbs
PythonTutorial
/
snaped.txt
Copy path
File metadata and controls
10 lines (10 loc) · 486 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
db=sqlite3.connect("test.db")
db.row_factory = sqlite3.Row
db.execute("create table if not exists Admin(name text,age int)")
db.execute("insert into Admin (name,age) values (?, ?)",("hussein",27))
#db.execute('insert into Admin (name, age) values (?, ?)', (row['t1'], row['i1']))
print("hello from python")
print("next line execute")
cursor=db.execute("select * from Admin")
for row in cursor:
print(' {}: {}'.format(row['name'], row['age']))
Back
|
FazBrowse Home
|
New Git URL