会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
君莫笑丶丶
博客园
首页
新随笔
联系
订阅
管理
2020年10月15日
linux安装jdk环境变量权限不够问题(bash: /usr/local/java/jdk1.8/bin/java: Permission denied)
摘要: 输入 chmod +x /usr/local/java/jdk1.8/bin/java 提升权限
阅读全文
posted @ 2020-10-15 12:19 君莫笑丶丶
阅读(7544)
评论(0)
推荐(0)
2020年9月26日
Specifying a namespace in include() without providing an app_name(Django)
摘要: 当我们在项目目录下的urls.py中使用include方法,使用命名空间namespce,却没有指定app的名称,就会出现上述错误。 解决方法: 方法1:在project/urls.py中修改 from django.urls import path,include from app import
阅读全文
posted @ 2020-09-26 15:56 君莫笑丶丶
阅读(197)
评论(0)
推荐(0)
2020年9月18日
Server returns invalid timezone. (mysql修改时区)
摘要: 在使用msql时经常会遇到时区错误,MySQL默认的时区是UTC时区,比北京时间晚8个小时,这时我们需要修改时区。 set global time_zone=’+8:00’; 此时就修改成功了。
阅读全文
posted @ 2020-09-18 13:35 君莫笑丶丶
阅读(332)
评论(0)
推荐(0)
2020年9月16日
Please make sure you have the correct access rights and the repository exists.(git 出错)
摘要: ssh 需要重置 1、重置用户名和邮箱 git config --global user.name “yourname” git config --global user.email“your@email.com" 注:yourname是你要设置的名字,your@email是你要设置的邮箱。 2、删
阅读全文
posted @ 2020-09-16 20:00 君莫笑丶丶
阅读(247)
评论(0)
推荐(0)
2020年9月12日
selenium实现无可视化浏览器以及反检测
摘要: 现在很多网站添加了检测selenium的工具,但selenium也有反检测的类,就是selenium中的ChromeOptions类 代码如下: from selenium import webdriverimport time# 实现无可视化界面from selenium.webdriver.ch
阅读全文
posted @ 2020-09-12 11:06 君莫笑丶丶
阅读(817)
评论(0)
推荐(0)
2020年9月9日
无法连接虚拟设备Ide1:0,因为主机上没有相应的设备(vmvare workstation)
摘要: 这是因为没设置使用镜像文件。 选择虚拟机,再点击左侧页面编辑虚拟机设置。选择CD/DVD(IDE) 将使用物理驱动器的选项改为下方的使用ISO映像文件,如图:
阅读全文
posted @ 2020-09-09 20:28 君莫笑丶丶
阅读(4604)
评论(0)
推荐(0)
2020年7月4日
js实现星星海
摘要: 首先需要获取屏幕大小: var screenWidth = document.documentElement.clientWidth; var screenHeight = document.documentElement.clientHeight; 接着可以定义动画(星星透明度): @keyfra
阅读全文
posted @ 2020-07-04 10:22 君莫笑丶丶
阅读(224)
评论(0)
推荐(0)
2020年7月3日
python实现图片格式转换(tkinter)
摘要: import os from PIL import Image import tkinter import tkinter.filedialog import tkinter.messagebox class Window(): def __init__(self): self.root = roo
阅读全文
posted @ 2020-07-03 19:53 君莫笑丶丶
阅读(1034)
评论(0)
推荐(0)
matplotlib绘图中文字符乱码的问题
摘要: windows:plt.rcParams['font.sans-serif'] = ['SimHei'] # 指定默认字体plt.rcParams['axes.unicode_minus'] = False # 解决保存图像是负号'-'显示为方块的问题
阅读全文
posted @ 2020-07-03 19:52 君莫笑丶丶
阅读(251)
评论(0)
推荐(0)
2020年6月23日
python读取文件不全问题
摘要: 由于pycharm对能关联的文件做了大小限制,所以我们需要修改设定。 pycharm-->Help-->Edit Custom Properties 打开编辑后加入: idea.max.intellisense.filesize = 200000(可以自行修改kb) idea.max.content
阅读全文
posted @ 2020-06-23 10:49 君莫笑丶丶
阅读(1679)
评论(0)
推荐(0)
下一页
公告