[英]How print the returned tuple of a function without parenthesis
def CountFrequency(z):
freq = {}
for item in z:
if (item in freq):
freq[item] += 1
else:
freq[item] = 1
for key, value in freq.items():
a=(min(freq.values()))
b=(max(freq.values()))
return a,b
i want to print my output without brackets but it prints with ( )我想打印不带括号的输出,但打印时带有 ( )
eg -例如——
expected :预期的 :
1 2
output :输出 :
(1,2)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.