Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

获取数据异常 #17

Open
zxwwulaweb opened this issue Nov 5, 2018 · 10 comments
Open

获取数据异常 #17

zxwwulaweb opened this issue Nov 5, 2018 · 10 comments

Comments

@zxwwulaweb
Copy link

我使用了php调用python来处理地址,输出返回值时数据异常,也就是无法显示正确的省市区,但是我用python直接运行又是正常的,这是为什么

@DQinYuan
Copy link
Owner

DQinYuan commented Nov 5, 2018

php是通过什么方式调用python的呢?命令行的输入输出吗?能否贴一下代码呢?

1 similar comment
@DQinYuan
Copy link
Owner

DQinYuan commented Nov 5, 2018

php是通过什么方式调用python的呢?命令行的输入输出吗?能否贴一下代码呢?

@zxwwulaweb
Copy link
Author

zxwwulaweb commented Nov 5, 2018 via email

@DQinYuan
Copy link
Owner

DQinYuan commented Nov 5, 2018

谢谢您的回复 代码就是通过 $outPut = exec('python3 mypy.py 思明区望海路67号') print_r($outPut); mypy.py 是我直接写的通过调用你的代码来的,我通过命令行来运行是正常输出的

------------------ 原始邮件 ------------------ 发件人: "DQYuan"[email protected]; 发送时间: 2018年11月5日(星期一) 晚上7:37 收件人: "DQinYuan/chinese_province_city_area_mapper"[email protected]; 抄送: "ㄗs綯氣ぃ!"[email protected]; "Author"[email protected]; 主题: Re: [DQinYuan/chinese_province_city_area_mapper] 获取数据异常 (#17) php是通过什么方式调用python的呢?命令行的输入输出吗?能否贴一下代码呢? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

mypy.py里的内容能贴出来吗?

@zxwwulaweb
Copy link
Author

zxwwulaweb commented Nov 6, 2018 via email

@DQinYuan
Copy link
Owner

DQinYuan commented Nov 7, 2018

我说的是mypy.py中的python代码,能贴出来看看吗?你在mypy.py中输出的是字符串吗?如果你直接输出的是dateframe可能会出错的吧,因为我没看到mypy.py,只能猜测一下了

@zxwwulaweb
Copy link
Author

zxwwulaweb commented Nov 7, 2018 via email

@zxwwulaweb
Copy link
Author

zxwwulaweb commented Nov 7, 2018 via email

@DQinYuan
Copy link
Owner

DQinYuan commented Nov 7, 2018

php那面是报错还是显示的数据不对?如果是报错的话是什么错呢?

@zxwwulaweb
Copy link
Author

zxwwulaweb commented Nov 7, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants