• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
TDsun
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理

01 2018 档案

 
pycharm 在线激活
摘要:1、在pycharm过期页面选择 enter License 2、激活界面的License server输入:http://idea.liyang.io 然后点击激活 (确保电脑能上网,亲测有效) 阅读全文
posted @ 2018-01-31 10:58 TDsun--> 阅读(797) 评论(0) 推荐(0)
Python3实现生成验证码图片
摘要:import randomfrom PIL import Image, ImageFont, ImageDrawfrom io import BytesIOfrom ttt import settingsimport osimport base64 PATH = os.path.join(setti 阅读全文
posted @ 2018-01-30 19:31 TDsun--> 阅读(1585) 评论(0) 推荐(0)
pycharm汉化 (ubuntu版)
摘要:终端依次输入 cd /tmp git clone https://github.com/ewen0930/PyCharm-Chinese cd Pycharm-Chinese bash package.cmd (需安装配置java环境,ubuntu为apt install default-jdk) 阅读全文
posted @ 2018-01-25 23:51 TDsun--> 阅读(1359) 评论(0) 推荐(0)
git使用之放弃本地修改
摘要:一,未使用 git add 缓存代码时。 可以使用 git checkout -- filepathname (比如: git checkout -- readme.md ,不要忘记中间的 “--”两边都有空格 ,不写就成了检出分支了!!)。放弃所以的文件修改可以使用 git checkout . 阅读全文
posted @ 2018-01-23 18:40 TDsun--> 阅读(4074) 评论(0) 推荐(0)
django实现api跨域请求访问
摘要:第一步:安装 django-cors-headers pip install django-cors-headers 第二步:配置settings.py文件 和前端配合指定可以跨域的用户 from corsheaders.defaults import default_headers CORS_AL 阅读全文
posted @ 2018-01-09 17:16 TDsun--> 阅读(913) 评论(0) 推荐(0)
ubuntu设置静态ip后不能上网
摘要:加上下面的配置,然后重启 sudo vim /etc/resolvconf/resolv.conf.d/base nameserver 223.5.5.5nameserver 8.8.8.8nameserver 114.114.114.114 阅读全文
posted @ 2018-01-09 16:21 TDsun--> 阅读(1383) 评论(0) 推荐(0)
ubuntu设置静态ip
摘要:一、 编辑interfaces文件 (需要修改文件权限) sudo vi /etc/network/interfaces 二、将一下内容添加进去 auto lo iface lo inet loopback auto ens33 iface ens33 inet static address 192 阅读全文
posted @ 2018-01-08 17:48 TDsun--> 阅读(172) 评论(0) 推荐(0)
 

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3