自己写的20讲最后一题作业
str1 = '''那个文本放进去'''list1 = list(str1)
list1.append('a')
list2 = []
lenth = len(list1)
for i in range(0,lenth-5):
n = str(list1)
a1 = str(str1)
a2 = str(str1)
a3 = str(str1)
a4 = str(str1)
a5 = str(str1)
a6 = str(str1)
a7 = str(str1)
a8 = str(str1)
if n.islower():
if a1.isupper() and a2.isupper() and a3.isupper() and a4.isupper() and a5.isupper() and a6.isupper() and a7.islower() and a8.islower():
list2.append(list1)
frist = ''
for j in list2:
frist = frist + j
print(frist)
页:
[1]