Passing value from PHP script to Python script

前端 未结 2 1766
温柔的废话
温柔的废话 2020-12-05 03:09

I looked at the other questions similar to this one, but can\'t figure this out still.

I have a basic php file that does this:


?php
$item=\'example\         


        
2条回答
  •  悲哀的现实
    2020-12-05 03:45

    write a php file example index.php:

    
    

    $sym is a parameter we passining to test.py python file. then create a python example test.py:

    import sys
    print(sys.argv[1])
    

    I hope it help you.

提交回复
热议问题