コード例 #1
0
from crud import CRUD

#print(crud.create('age','20'))

x = CRUD()

print(x.read())

print(x.create("college","St.Joseph's Insitute of Technology"))

print(x.read())

print(x.update("college","St.Joseph's Insitute of Technology"))

print(x.delete("college"))
コード例 #2
0
 def deleteBook(self):
     book = input("Delete book: ")
     CRUD.delete(self, book)  # Uses the delete method in crud module