2006年08月10日 星期四 11:20
天才狐狸,您好! 检查C的值 在 2006-08-09 19:43:00 您写道: >Hi > > 请看看这个代码为什么,运行的时候说 > File "PARSIN~1.PY", line 24, in seq2Binary > if int(c) > 0 : > ValueError: invalid literal for int(): > >代码如下: >def seq2Binary(_self): > count =0 > for c in _self.frequence: > if int(c)>0 : > count += 1<> return count > >_______________________________________________ >python-chinese >Post: send python-chinese at lists.python.cn >Subscribe: send subscribe to python-chinese-request at lists.python.cn >Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn >Detail Info: http://python.cn/mailman/listinfo/python-chinese 致 礼! cry zyqmail at tom.com
Zeuux © 2025
京ICP备05028076号