|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
temp = input('请输入字符串:')
for i in temp:
n = temp.find(i)
if i.islower() and n > 3 and temp[n-1].isupper() and temp [n-2].isupper() and temp [n-3].isupper() and (not temp[n-4].isupper()) and temp[n+1].isupper() and temp[n+2].isupper() and temp[n+3].isupper() and (not temp[n+4].isupper()):
print(i,end = '')
elif i.islower() and n == 3 and temp[2].isupper() and temp [1].isupper() and temp [0].isupper() and temp[4].isupper() and temp[5].isupper() and temp[6].isupper() and (not temp[7].isupper()):
print(i,end = '') |
|