📜  从 python 转换为 curl - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:52.732000             🧑  作者: Mango

代码示例4
import sys

test_str = str(sys.argv)
# printing original string 
res = ''.join(format(ord(i), '08b') for i in test_str)
# printing result 
#print(str(res))#binary
print(str(test_str))#base64