简体   繁体   中英

How to send SQL data gain from a php script to a python script?

I'm struggling with a question. So I created a Neural Network, but now I want to put values from my database in it. It's important that the data from the database is collected by a php script (already created), and has been send to my python Neural Network script. How do I transfer multiple variables and even multiple rows from my database to a python script?

Best way to share data is via API. Prepare array containing multiple data you want to send then convert the data to JSON. On python, decode the JSON then take data out of it one by one. Hope this answers your question.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM