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
Post a Comment