Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は python で MySQLdb を使用して mysql データベースに接続しています (duh) が、PHP に組み込まれている機能が本当に欠けています。
mysql_fetch_arrayとmysql_fetch_object
mysql_fetch_array
mysql_fetch_object
スクリプトの移植を開始できるように、Python で同等のものは何ですか?
私が探していたのはDictCursor:
DictCursor
cur = con.cursor(MySQLdb.cursors.DictCursor)