Blog posts

2199

Future Blog Post

less than 1 minute read

Published:

This post will show up by default. To disable scheduling of future posts, edit config.yml and set future: false.

2022

Post 3

less than 1 minute read

Published:

Python文件路径读取书写问题,直接复制绝对路径会出现 SyntaxError: (unicode error) ‘unicodeescape’ codec can’t decode bytes 问题。错误出现的根本原因是转义问题。例如:简单书写 dataset=pd.read_csv(‘C:\Users\mastaffs\Desktop\JupyterTest\datasets\studentscores.csv’) 就会报错。原因是在python 字符串中\有转义的含义,我们需要采取一些方式使得\不被解读为转义字符。有三种方法可以解决:

  • (1). 在路径前面加r,即保持字符原始值的意思
    dataset=pd.read_csv(r’C:\Users\mastaffs\Desktop\JupyterTest\datasets\studentscores.csv’)
  • (2). 替换为双反斜杠
    dataset=pd.read_csv(‘C:\\Users\\mastaffs\\Desktop\\JupyterTest\\datasets\\studentscores.csv’)
  • (3). 替换为正斜杠
    dataset=pd.read_csv(‘C:/Users/mastaffs/Desktop/JupyterTest/datasets/studentscores.csv’)

Post 2

less than 1 minute read

Published:

向不同期刊/出版社投稿时,会有不同的manuscript格式要求:

  • 下载相应package, 并放在C\CTex\MikTex\tex\latex 路径下
  • 更新MikTex FNDB. main menu上的tex-> MikTex-> MikTex Options-> Refresh FNDB.

2021

Post 1

less than 1 minute read

Published:

WinEdt 10.3 注册码破解激活码(防止网页失效,特此搬运) Help -> Register

  • WinEdt Name: Cracker TeCHiScy
  • Code: 1130140925535334280

过段时间可能失效,失效后再次输入这个注册码可继续正常使用。