标签:+++ 列表 pytho 全栈 字符 print iterable 转换 utf-8
#!/user/bin/python
# -*- coding:utf-8 -*-
s = ‘zd‘
s1 = ‘_‘.join(s)
print(s1)
li = [‘zs‘,‘ls‘,‘ww‘,‘zl‘,‘张达‘]
s = ‘+++++++‘.join(li)
print(s)
for i in range(0,10):
print(i)
for i1 in range(0,10,3):
print(i1)
for i2 in range(10,0,-1):
print(i2)
for i3 in range(0,10,-1):
print(i3)
for i4 in range(10,0,-2):
print(i4)
for i5 in range(10,-1,-2):
print(i5)
2017-12-19python全栈9期第四天第三节之iterable可迭代对象join之字符串和列表转换成字符串和range
标签:+++ 列表 pytho 全栈 字符 print iterable 转换 utf-8
原文地址:https://www.cnblogs.com/zhang-da/p/10204601.html