W
willgun
Hi,everyone!
When i run the following in IDLE:
IDLE 2.6.1everything goes well,but when i save these to a .py file and run it:
Traceback (most recent call last):
File "C:\Users\hp\Desktop\SQLite3\sqlite3.py", line 2, in <module>
import sqlite3
File "C:\Users\hp\Desktop\SQLite3\sqlite3.py", line 3, in <module>
con=sqlite3.connect(r'g:\db1')
AttributeError: 'module' object has no attribute 'connect'
Anyone can tell me why?
Thanks first!
When i run the following in IDLE:
IDLE 2.6.1everything goes well,but when i save these to a .py file and run it:
Traceback (most recent call last):
File "C:\Users\hp\Desktop\SQLite3\sqlite3.py", line 2, in <module>
import sqlite3
File "C:\Users\hp\Desktop\SQLite3\sqlite3.py", line 3, in <module>
con=sqlite3.connect(r'g:\db1')
AttributeError: 'module' object has no attribute 'connect'
Anyone can tell me why?
Thanks first!