我是励志哥

摘要: pip源更改至清华、阿里镜像,以提高安装速度以及成功率 临时使用: 可以在使用pip的时候加参数-i https://pypi.tuna.tsinghua.edu.cn/simple 例如:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple 阅读全文
posted @ 2020-07-25 22:28 python黑客编程 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 在这个递归函数中,首先要将item里面的元素看成是三个元素,这样才能找到突破口,item里面包含[1,2] , 3 , [4,[,5[6,7]]]这么三个大的元素, 在执行函数时, 第一次i 的值为[1,2] 判断[1,2]是列表的对象, 然后执行下一步,继续调用foo函数,这时候i将它的值传递给i 阅读全文
posted @ 2019-10-22 19:19 python黑客编程 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 提交代码时反反复复的出现下面问题 在网上也找了好多解决这个问题的办法,试了个遍还是解决不了这种问题,于是重新从git上拉下代码又提交了一次代码,代码提交成功,编写其他程序再次提交代码时又会出现上述问题,一个字,头大,抱着试试的态度又百度了一波,这次是真的把这个问题解决了 网上说是因为代理的问题,咱具 阅读全文
posted @ 2022-01-25 22:44 python黑客编程 阅读(346) 评论(1) 推荐(0) 编辑
摘要: <template> <div > <iframe id="template-iframe" ref="iframe" :src="src" scrolling="no" frameborder="0" @load='loaded'></iframe> </div> </template> <scr 阅读全文
posted @ 2022-01-05 09:39 python黑客编程 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-12-20 10:58 python黑客编程 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 第一种方式 1. npm install vuedraggable -S 2.组件注册 import draggable from "vuedraggable"; export default { components: { draggable, } 3。上全部代码 <template> <div> 阅读全文
posted @ 2021-12-08 09:57 python黑客编程 阅读(60) 评论(0) 推荐(0) 编辑
摘要: import Vue from 'vue' import Cookies from 'js-cookie' import storeOnlineuser from "@/store/modules/onlineUser.js" import bus from "@/api/bus.js" impor 阅读全文
posted @ 2021-11-27 22:16 python黑客编程 阅读(127) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
posted @ 2021-11-13 11:29 python黑客编程 阅读(1416) 评论(0) 推荐(0) 编辑
摘要: 方式一:js实现全屏 <template> <div> <a-button type="primary" @click="screen">全屏</a-button> </div> </template> data() { return { fullscreen: false }; }, method 阅读全文
posted @ 2021-11-09 09:34 python黑客编程 阅读(916) 评论(0) 推荐(0) 编辑
摘要: import os import sys import django import time import uuid BASE_DIR = os.path.dirname(os.path.abspath(__file__)) # 定位到django根目录 sys.path.append(os.pat 阅读全文
posted @ 2021-09-11 14:59 python黑客编程 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 操作增加用户或更改用户权限,在保存的时候报出以下错误: django.db.utils.OperationalError: (1366, "Incorrect string value: '\\xE4\\xBF\\xAE\\xE6\\x94\\xB9...' for column 'message' 阅读全文
posted @ 2021-09-11 14:32 python黑客编程 阅读(979) 评论(0) 推荐(0) 编辑
摘要: vue+element+富文本编辑器 全局使用 1.使用npm安装 vue-quill-editor npm install vue-quill-editor --save 2.在main.js中引入富文本编辑器 //引用富文本编辑器 import VueQuillEditor from 'vue- 阅读全文
posted @ 2021-09-06 20:52 python黑客编程 阅读(508) 评论(0) 推荐(0) 编辑