如何从if
语句继续到elif
? 我希望最终结果是“mybadgr”,但它会不断打印出“badgr”。
a = "Badger"
vowels = 'AEIOUaeiou'
flicker = len(a)
if a[flicker - 2] in vowels and a[flicker -1] in'r':
final = str(a[:flicker-2])+'r'
flicker = len(str(final))
#continue the if to elif
elif flicker < 6:
final = 'My'+final