#列表转字符串(字符串加数字):
li = [11, 22, 33, "asd", "xyz", "879", "hello"]
s = ""
for item in li:
s = s + str(item)
print(s)
#列表转字符串(只有字符串):
li = ["ety", "xyz", "hello", "world"]
s = "".join(li)
print(s)#二进制字符串转十进制整数
s = "1001"
n = int(s,2)
返回9
#列表转字符串(字符串加数字):
li = [11, 22, 33, "asd", "xyz", "879", "hello"]
s = ""
for item in li:
s = s + str(item)
print(s)
#列表转字符串(只有字符串):
li = ["ety", "xyz", "hello", "world"]
s = "".join(li)
print(s)#二进制字符串转十进制整数
s = "1001"
n = int(s,2)
返回9