摘要: import requests import random import json import win32com.client from hashlib import md5 import tkinter as tk root = tk.Tk() root.title("英语翻译") root.g 阅读全文
posted @ 2023-02-25 18:05 未来全栈攻城狮 阅读(59) 评论(0) 推荐(0) 编辑
摘要: import re def pythonReSubDemo(inputStr): """ demo Pyton re.sub """ # inputStr = "recordInvalidDate" def to_lower(matched): s = matched.group(0).lower( 阅读全文
posted @ 2021-11-12 16:22 未来全栈攻城狮 阅读(241) 评论(0) 推荐(0) 编辑
摘要: import time import zipfile from time import sleep import os import requests def download(): "下载reids" print("downloading with Redis") url = 'https://g 阅读全文
posted @ 2021-11-10 18:40 未来全栈攻城狮 阅读(93) 评论(0) 推荐(0) 编辑
摘要: from django.db import models from games.models import Game, Genre from shots.utils import get_unique_slug from django.utils import timezone ... model 阅读全文
posted @ 2021-10-15 09:19 未来全栈攻城狮 阅读(21) 评论(0) 推荐(0) 编辑
摘要: Celery Celery是一个功能完备即插即用的异步任务队列系统。它适用于异步处理问题,当发送邮件、或者文件上传, 图像处理等等一些比较耗时的操作,我们可将其异步执行,这样用户不需要等待很久,提高用户体验。 文档:http://docs.jinkan.org/docs/celery/getting 阅读全文
posted @ 2021-04-21 20:08 未来全栈攻城狮 阅读(87) 评论(2) 推荐(0) 编辑
摘要: #include <stdio.h> #include <stdlib.h> #include <conio.h> #include <windows.h> // 函数外全局变量定义 int position_x,position_y; // 飞机位置 int bullet_x,bullet_y; 阅读全文
posted @ 2021-04-04 23:26 未来全栈攻城狮 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 1、查看 iptables -nvL --line-number -L 查看当前表的所有规则,默认查看的是filter表,如果要查看NAT表,可以加上-t NAT参数 -n 不对ip地址进行查,加上这个参数显示速度会快很多 -v 输出详细信息,包含通过该规则的数据包数量,总字节数及相应的网络接口 – 阅读全文
posted @ 2021-03-26 22:45 未来全栈攻城狮 阅读(571) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> #include<stdlib.h> #include<conio.h> int main() { int i,j; int x=10; int y=5; char input; int isFired =0; // 是否开火 int ny = 5; int is 阅读全文
posted @ 2021-03-07 14:48 未来全栈攻城狮 阅读(166) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <stdlib.h> #include <windows.h> int main() { int i, j; int x=2; int y = 5; int velocity_x =1; int velocity_y =1; int left 阅读全文
posted @ 2021-03-06 23:36 未来全栈攻城狮 阅读(191) 评论(0) 推荐(0) 编辑
摘要: selenium基础用法.py from selenium import webdriver from lxml import etree from time import sleep 实例化浏览器对象 bro = webdriver.Chrome(executable_path='./chrome 阅读全文
posted @ 2021-02-25 23:51 未来全栈攻城狮 阅读(66) 评论(0) 推荐(0) 编辑