示例#1
0
    return users[0]['pass'] == pw

def addstory(story):
    db.login.insert({'story':story})

def followedstory(story):
    db.login.insert({'followed':story})
#!/usr/bin/python
#!flask/bin/python

#This is Jack Cahn and Alvin Leung's Project

import sqlite3
connection = sqlite3.connect('test.db')
create table logins(username  text, password text);
cursor = connection.execute(q)

#results=[]
#for line in cursor:
#    results.append(line)
results = [line for line in cursor]

print results
# for line in cursor:
#     print line[0]

# print "Second time"
# for line in cursor:
#     print line

def adduser(username,password):