dbtest.py 182 B

12345
  1. import dataset
  2. db = dataset.connect('mysql://vincent:vipAsw0_69d@db.ptt.cx:3306/vincent?charset=utf8mb4')
  3. table=db['test']
  4. table.insert({'title':'test','content':'this is a test'})