← 返回 stripe 的题目列表CSV Processing
类型:online_judge
Process a CSV file using Python and print the maximum and minimum value of each row. Assume each row in the CSV file contains a list of integers separated by commas. Implement the following features:
Read the CSV file content from standard input.
For each row, calculate the maximum and minimum integers.
Print the maximum and minimum for each row in the format 'max: {max}, min: {min}'.
Example Input:
1,2,3
4,5,6
7,8,9
Example Output:
max: 3, min: 1
max: 6, min: 4
max: 9, min: 7
Example
Input
1,2,3
4,5,6
7,8,9