编写函数,实现功能是,输入一个正整数,返回该数中3出现的个数。
n=int(input('请输入一个正整数:'))x=list(range(1,n+1,2))x=str(x)num=x.count('3')print(num)