摘要:
我的操作系统是windows10。 MySQL数据库的导出和访问的时候采用mysqldump命令,出现如下错误提示:“Warning: Using a password on the command line interface can be insecure.” 这个问题应该是在MySQL5.6+ 阅读全文
摘要:
os.path.dirname(__file__)返回脚本的路径,但是需要注意一下几点: 1、必须是实际存在的.py文件,如果在命令行执行,则会引发异常NameError: name '__file__' is not defined 2、在运行的时候如果输入完整的执行的路径,则返回.py文件的全路 阅读全文