1 parent 532f2bb commit 9baee4eCopy full SHA for 9baee4e
2 files changed
python/README.md
@@ -130,6 +130,9 @@ print( Gan[gz.tg], Zhi[gz.dz])
130
year = lunar.getYearCal(2018)
131
```
132
133
+### 懒人下载地址 (只提供Win版本):
134
+
135
+https://pan.baidu.com/s/1VR4MtPVV9iP9SSHNDjKZnQ
136
137
### 最后
138
python/setup.py
@@ -3,11 +3,15 @@
3
4
import setuptools
5
from distutils import ccompiler
6
-import os
+import os,sys
7
import shutil,os
8
+if sys.version_info < (3, 0):
9
+ with open("README.md", "r") as fh:
10
+ long_description = fh.read()
11
+else:
12
+ with open("README.md", "r", encoding='utf-8') as fh:
13
14
-with open("README.md", "r") as fh:
- long_description = fh.read()
15
16
if os.path.isdir("../src"):
17
if os.path.isdir("src"):
0 commit comments