准备工作:
1.python34+sublime
2.准备太阳黑子数据predict.txt
3.安装tomcat,并将predict.txt置于根目录下
sunspots_roto.py
#第一行就与python2不同
#原文:from urllib import urlopen
from urllib.request import urlopen
from reportlab.graphics.shapes import *
from reportlab.graphics.charts.lineplots import LinePlot
from reportlab.graphics.charts.textlabels import Label
from reportlab.graphics import renderPDF
#http://localhost:8080/predict.txt
URL =