#!/usr/bin/env python3
import sqlite3

conn = sqlite3.connect(r'\\ll\D\xtrssvjj\db\dpd.db')
cursor = conn.execute("PRAGMA table_info(ads)")
print("ads 表当前字段：")
print("-" * 80)
for row in cursor:
    print(f"cid: {row[0]:2d}, name: {row[1]}")
print("-" * 80)
cursor.close()
conn.close()
