This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
btoa(unescape(encodeURIComponent( string ))) //字符串转BASE64 | |
atob(unescape(encodeURIComponent( string ))) //BASE64转字符串 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Python 获取根目录 | |
#Windows | |
import os | |
curPath = os.path.abspath(os.path.dirname(__file__)) | |
rootPath = curPath[:curPath.find("myProject\\")+len("myProject\\")] # 获取myProject,也就是项目的根路径 | |
dataPath = os.path.abspath(rootPath + 'data\\train.csv') # 获取tran.csv文件的路径 | |
#Mac | |
import os |
NewerOlder