题解 | #统计数据正负个数#
统计数据正负个数
https://www.nowcoder.com/practice/3f33889582934a09b4e3ddd3cc976226
map = map(int,input().split()) p = 0 n = 0 for i in map: if i > 0: p += 1 else: n += 1 print(f'positive:{p}\nnegative:{n}')#python#
统计数据正负个数
https://www.nowcoder.com/practice/3f33889582934a09b4e3ddd3cc976226
map = map(int,input().split()) p = 0 n = 0 for i in map: if i > 0: p += 1 else: n += 1 print(f'positive:{p}\nnegative:{n}')#python#
相关推荐
招聘动态