# a="Hello"
# b="Python"
#
# print("a+b输出结果：",a+b)
# print("a*2输出结果：",a*2)
# print("a[1]输出结果：",a[1])
#
# if("H"in a):
#     print("H在变量a中")
# else:
#     print("H不在变量a中")
#
# if("M"not in a):
#     print("M不在变量a中")
# else:
#     print("M在变量a中")

# a="hello word I am Anna"
# print(a.find("Anna",0,len(a)))

# a="hello word I am Anna"
# print(a.index("hello",0,len(a)))

# a="hello world I am Anna"
# print(a.count("Anna",0,21))

# a="helIw world I am Anna"
# b=a.replace("I","b",2)
# print(b)

# a="hello world I am Anna"
# b=a.split("e",2)
# print(b)

# a="hello world I am Anna"
# b=a.capitalize()
# print(b)

# print(-5//4)

# a=1
# b=2*a/4
# a="one"
# print(a,b)

# i=0
# sum=0
# while i<=100:
#     sum+=i
#     i+=1
# print(sum)

# i=1
# while i==1:
#     print("love you very much")


# i=0
# while i<3:
#     print("love you")
#     i+=1
# else:
#     print("end")

# i=1
# while i<100:
#     print("love you")
#     if i==4:
#             break
#     i+=1

# i=0
# while i<10:
#     i+=1
#     if i ==4:
#         continue
#     print(i)


# list1=['a','b','c','d','e']
# for i in list1:
#     print(i)

# name=['Anna','Lucy','Jacob','Bunny']
# for i in name:
#     if i =='Jacob':
#         break
#     print(i)
# print("循环结束")

import random

# for i in range(0,10,2):
#     print(i)
#
# a = ['Google', 'Baidu', 'Runoob', 'Taobao', 'QQ']
# for i in range(len(a)):
#    print(i, a[i])

# i=1
# while i<=5:#条件
#     j=1
#     while j<=i:
#         print("*",end="")
#         j+=1;
#     print("")
#     i+=1

# i=1
# while i <=9:
#     j=1
#     while j<=i:
#         print(i*j,end="")
#         j+=1
#     print("")
#     i+=1

#
#  print(-16//2.5)

# print(int('abc'))

# alist=[[1,2],3,4]
# blist=alist
# blist[0]=1
# print(alist)
