Question:
>Define a class which has at least two methods:
1)getString: to get a string from console input
2)printString: to print the string in upper case
>Also please include simple test function to test the class methods.
Solution:


>Define a class which has at least two methods:
1)getString: to get a string from console input
2)printString: to print the string in upper case
>Also please include simple test function to test the class methods.
本文标题:Python-05题
本文链接:https://www.haomeiwen.com/subject/hjpsrktx.html
网友评论