摘要:
fp = open('somefile.txt') while True: line = fp.readline() if not line: #等价于if line == "": break Python中,空串的not返回true,即not line时为读到EOF(文件末尾)。 在文件中,如果遇 阅读全文
摘要:
1. 机器学习的定义:Machine learning is programming computers to optimize a performance criterion(优化性能标准) using example data or past experience.2. 监督学习(Supervi... 阅读全文