在Go巡回赛中有一个关于二叉树的exercise。 我已经解决了这个问题,一些问题在路上出现了。 这是树的结构 type Tree struct { Value int} 这是一些代码 //send values into channel if t.Left != nil{ } if t.Right != nil{
代码要求从2-5之间的数字输入计数到最多5,但最后一个要求是输出必须是文字数字。num = int(input('Enter a number (2-5): '))while count <= num: printnum = int(input('Enter a number (2-5): ')) count = count + 1Enter a number(<