For example: Input  and output
Hello, I want to ask you a question. How do I get the values in the input and output ports of the robot through a Python script
You need to add boolean signal behaviours to ports in the signal map and then read or write the values of those signals. Take a look at vcBooleanSignalMap and vcBoolSignal in the VC help file.