摘要: 运行报如下错误: SyntaxError: Non-ASCII character '\xe8' in file /home/ubuntu/code/201803091253-text.py on line 1, but no encoding declared; see http://python 阅读全文
posted @ 2018-03-09 14:36 begrateful 阅读(1056) 评论(0) 推荐(0) 编辑
摘要: 准备工作 1:服务器(本地虚拟安装或是云服务器)这里我使用的是腾讯云服务器 2:PyCharm开发软件 3:XShell 软件 以上准备工作在我的博客关于Linux学习中都有涉及。 第一步:打开PyCharm如下图新建一个项目 Location:选择代码存放在本地的路径 Interpreter:选择 阅读全文
posted @ 2018-03-09 14:25 begrateful 阅读(1481) 评论(2) 推荐(2) 编辑
摘要: Ubuntu切换用户 su root sudo passwd root 使用管理员提权修改root 登录密码 连续输入两次即可..... 重置root 用户密码 例:当前登录用户为:ubuntu,但是我把root 用户密码忘记了。这时候我们就用Ubuntu这个用户来修改root密码 1:先登录ubu 阅读全文
posted @ 2018-03-09 10:25 begrateful 阅读(197) 评论(0) 推荐(0) 编辑