#!/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)
原文地址:https://www.cnblogs.com/zhang-da/p/10204601.html
时间: 2024-11-07 04:13:09