Home > other >  Small white for help!!!!! Python topic!!!!!!
Small white for help!!!!! Python topic!!!!!!

Time:10-28

The school of arts living to choose is not based on alternative plans base chose py course, SOB meowed Python I feel difficult, and to draw to hold thigh for help!!!!!
I understand the programmer's bitter, cherish programmer!!!!!!!!!!

Over a string of caps
[problem description]
The input string, capital letters converted to lower case letters, lower case letters converted to uppercase,
[input format]
The first line contains an integer n, said given the number of rows, the next n lines, each line contains a string, the string is composed of case letters, contains no Spaces or other characters,
Output format []
Output string for the input string case conversion

CodePudding user response:

Outo=input ()

S=""
For I in outo:
If i.i slower () :
S +=i.u pper ()
Elif i.i supper () :
S +=i.l power ()
The else: s +=I
print(s)

CodePudding user response:

S="[email protected]"

The import re

Print (re. Match (" \ w + @ \ w + \. \ w + ", s))

CodePudding user response:

thank you for the great spirit
  • Related