i need to use shell command to run python script
but the args is a list the python script:
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import sys
def main(task_list):
print('task_list:',task_list)
if __name__=='__main__':
main(sys.argv[1])
when i use the shell python
python scrpit.py [("store", "IDCODE", 18116485, 88779)]
the system show: "(' have a error"
how can i trans the list into script ?
the ("store", "IDCODE", 18116485, 88779) is a arg