洛谷题单1-P5704 【深基2.例6】字母转换-python-流程图重构

时间:2025-03-30 10:39:09
class Solution: @staticmethod def oi_input(): """从标准输入读取数据""" char = input() return char @staticmethod def oi_test(): """提供测试数据""" return 'q' @staticmethod def solution(char): print(char.upper()) oi_input = Solution.oi_input oi_test = Solution.oi_test solution = Solution.solution if __name__ == '__main__': char = oi_test() # char = oi_input() solution(char)