摘要: 1 设置安全组 >开启端口访问 >入站、出站端口设置 2 udp需设置成0.0.0.0:8080 3 Django 》settings.py 》ALLOWED_HOSTS = ['0.0.0.0+端口号'] 阅读全文
posted @ 2018-12-01 17:22 喻晓生 阅读(1056) 评论(0) 推荐(0) 编辑
摘要: 1 下载源码:https://github.com/sshwsfc/xadmin 2 加入工程文件 3 pip install -r > requestments.txt 4 Setting文件安装 5 ModuleNotFoundError: No module named 'xadmin' se 阅读全文
posted @ 2018-05-15 10:45 喻晓生 阅读(2254) 评论(0) 推荐(0) 编辑
摘要: 1 基于Echars图表数据分析(HTML部分:创建div-->调用js) {% for main in main_count %} <div id="{{ main|safe }}" style="width:1280px;height:850px;"></div> {% endfor %} <s 阅读全文
posted @ 2018-05-09 08:55 喻晓生 阅读(666) 评论(0) 推荐(0) 编辑
摘要: 1 页面固定大小 2 CSS动态效果 3 右侧音乐插件 3 左侧时间插件 4 图片轮播 5 极简音乐插件 <script> DNmusicPlay({ boxStyle:"right:20%;top:10px;opacity:1;", playbuttonSrc:"glyphicon glyphic 阅读全文
posted @ 2018-04-11 09:57 喻晓生 阅读(488) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- # @Time : 2018/3/1 16:38 # @Author : HT # @Email : acer_yuhaitao@163.com # @File : 51job.py # @Software: PyCharm import urllib import re import sqlite3 import sys rel... 阅读全文
posted @ 2018-03-01 22:16 喻晓生 阅读(2048) 评论(0) 推荐(0) 编辑
摘要: import string from matplotlib import pyplot as plt import matplotlib.font_manager as fm hist=[] def process_line(line, hist):#生成[50, 'the']等列表 for word in line.split(): word = word.stri... 阅读全文
posted @ 2018-03-01 15:07 喻晓生 阅读(1970) 评论(0) 推荐(1) 编辑
摘要: import re db="mysql://root:fada@22ra017@127.0.0.1/htdb?charset=utf8mb4" r = re.search("mysql:\/\/([^:]+):([^#]+)@((?:[0-9]{1,3}\.){3}[0-9]{1,3})/([^\?]+)\?charset=utf8", db) print(r) print(r.group(0)... 阅读全文
posted @ 2018-02-27 11:10 喻晓生 阅读(836) 评论(0) 推荐(0) 编辑
摘要: def sqlitetest(txt,footer): cx = sqlite3.connect("D:\Python-Test\StuProject\db.sqlite3") cu = cx.cursor() #sql = '''insert into 'comment_comment'(txt,'footer') values (\"%s\",\"%s\");'''%... 阅读全文
posted @ 2018-02-02 09:36 喻晓生 阅读(2181) 评论(0) 推荐(0) 编辑
摘要: 1 查看版本 lsb_release -a 2 查看内核 uname -a 或 cat /proc/version 3 查看位数 uname -m 4安装虚拟环境 sudo pip install virtualenv virtualenvwrapper 5 配置环境 vi .bashrc 6 方法 阅读全文
posted @ 2018-01-28 21:11 喻晓生 阅读(681) 评论(0) 推荐(0) 编辑
摘要: 你在本地把所有依赖都弄到一个文件中 pip freeze > requirements.txt,把该文件上传到服务器。 然后再在服务器上先新建一个python虚拟环境,再激活虚拟环境,切换到requirements.txt文件夹目录下, 通过 pip install -r requirements. 阅读全文
posted @ 2018-01-28 11:23 喻晓生 阅读(728) 评论(0) 推荐(0) 编辑