sketch.py #--*-- coding:utf-8 --*-- import pickle import nester man = [] other = [] try: data = open ("datafile.txt") for each_line in data: try: (role, line_spoken) = each_line.split(":", 1) line_spoken = line_spoken.strip() if role =
在Eclipse中采用高版本jdk编译一些低版本的源码时,由于源码中使用了一些高版本中过时的API,可能就会报错,类似于: Access restriction:The type 'Unsafe' is not accessible due to restriction on required library.... 简单解决方法是修改编译器编译的配置: 设置 Windows->Preferences->Java-Complicer->Errors/Warnings->Depre