string - Python str/bytes type with cmd -


i have written python script use string in bytes type.

simple script :

s = 'just string'; b = str.encode(s); print(type(s)); print(type(b)); 

if run script in python idle output is:

<class 'str'> <class 'bytes'> 

and if run cmd; output result.

cmd output :

<class 'str'> <class 'str'> 

i need use string data in bytes type cmd.

why happened? , how can correct it?


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -