正在学习 Python, 做了个统计代码行的功能, 参考了网上很多前辈的帖子,添加了感觉还是比较实用的功能, 只是windows下测试了,而且代码文件编码形式是 utf-8的. 如果使用其它编码形式的话,估计修改下代码就行了. 功能特点: 是否统计空行 统计注释 设置忽略文件平 设置统计文件类型 根据不同文件类型,设置注释标签 以下,是代码: # Created by Aaron <xinlingever@outlook.com> in 2014 # This code is for Pyth
git 提交代码是会遇到以下问题, git commit 代码时提示: Warning: Your console font probably doesn‘t support Unicode. If you experience trange characters in the output, consider switching to a TrueType font such as ucida Console! 这是代码中含有中文导致的,且把代码改为utf-8也是解决不了的,查询了很多资料,最