从品牌网站建设到网络营销策划,从策略到执行的一站式服务
1
magicians = ['alice', 'david', 'carolina']
for magician in magicians:
print(magician)
创新互联公司长期为1000多家客户提供的网站建设服务,团队从业经验10年,关注不同地域、不同群体,并针对不同对象提供差异化的产品和服务;打造开放共赢平台,与合作伙伴共同营造健康的互联网生态环境。为淮阳企业提供专业的成都网站建设、做网站,淮阳网站改版等技术服务。拥有10年丰富建站经验和众多成功案例,为您定制开发。
for magician in magicians:
print(magician.title()+",that was a great trick!")
print("I can't wait to see your next trick," +magician.title()+".\n")
print("thank you,everyone.That was a great magic show!")
2
for value in range(1,5):
print(value)
numbers=list(range(1,6))
print(numbers)
numbers=list(range(1,10,3)) ##3是步长
print(numbers)
squares = []
for value in range(1,11):
square = value**2
squares.append(square)
print(squares)
squares = []
for value in range(1,11):
squares.append(value**2)
print(squares)
squares = [value**2 for value in range(1,11)]
print(squares)
3
digits=[1,2,3,4,5,6,7,8,9]
print(min(digits))
print(max(digits))
print(sum(digits))
4
n2 = [num for num in range(1,21,2)]
print (n2)
n3 = [num for num in range(3,31)]
for num1 in n3:
if num1 % 3 == 0:
print(num1)
n4 = [num**3 for num in range(1,11)]
print (n4)
player = ['charls','martina','michael','florence','eli']
print(player[0:3])
print(player[:2])
print(player[2:])
print(player[-3:])
player1=player[:] ##复制
print(player1)
成都网站建设公司地址:成都市青羊区太升南路288号锦天国际A座10层 建设咨询028-86922220
成都快上网科技有限公司-四川网站建设设计公司 | 蜀ICP备19037934号 Copyright 2020,ALL Rights Reserved cdkjz.cn | 成都网站建设 | © Copyright 2020版权所有.
专家团队为您提供成都网站建设,成都网站设计,成都品牌网站设计,成都营销型网站制作等服务,成都建网站就找快上网! | 成都网站建设哪家好? | 网站建设地图