Skip to content

Instantly share code, notes, and snippets.

# coding:utf-8
import os
import sys
from reportlab.lib.pagesizes import A4, landscape
from reportlab.pdfgen import canvas
from PIL import Image
from reportlab.pdfbase import pdfmetrics
from reportlab.pdfbase.ttfonts import TTFont
http://pytorch.org/
https://discuss.pytorch.org/
https://github.com/pytorch/
https://github.com/bfortuner/pytorch-cheatsheet/blob/master/pytorch-cheatsheet.ipynb
# getHexunFinaceData.r
# 从和讯读取财务数据
# version: 0.93
# 调用语法:
# getHexunFinaceData(stockid, start, end, type)
# 参数含义:
# stockid 股票代码
# start 起始年份
# end 结束年份
# type 财务报告类别,默认为"b",表示资产负债表;"i"表示利润表;"c"表示现金流量表