RError.com

RError.com Logo RError.com Logo

RError.com Navigation

  • 主页

Mobile menu

Close
  • 主页
  • 系统&网络
    • 热门问题
    • 最新问题
    • 标签
  • Ubuntu
    • 热门问题
    • 最新问题
    • 标签
  • 帮助
主页 / user-336472

videxerion's questions

Martin Hope
videxerion
Asked: 2024-08-11 23:38:30 +0000 UTC

当加载许多小数据包时评估网络接口上的负载

  • 8

问题描述

我正在编程一个批量端口扫描器。当尝试由于线程数量而提高速度时,我预料到会遇到这样的事实:在某个时刻,延迟 (ping) 达到了 300-800 毫秒的极高值。当然,很可能这可能与我的电脑没有直接关系,而是会让我的路由器超载,但我想确定一下。这就是问题所在。我只是不知道如何评价这种超载。我之前问过类似的问题,但是通过比较每秒流量和接口吞吐量来估算的方法并没有显示拥塞(网络负载标记保持在5%左右)。我认为重点是 TCP 连接的批量创建/关闭不会占用大量流量,因为我没有发送任何内容,只是检查连接是否成功。有一个想法是使用每秒数据包进行评估,但我面临的事实是,我根本不知道如何找出接口在开始过载之前每秒可以通过多少个数据包,从而增加延迟。

我的应用程序如何工作的描述

为了简化答案的工作,有必要稍微介绍一下应用程序本身。它是用 Golang 编写的,正如已经提到的,该应用程序的目的是大规模扫描端口并将结果输入数据库(尚未完成)。它创建了许多 goroutine(根据经验,500 个扫描线程只会稍微增加延迟 20-30 毫秒,当 600 个线程将延迟增加到 300 毫秒)尝试创建 TCP 连接,如果成功,则认为端口打开。下面您可以看到代码,其中有两个函数ScannerThread,scanHost第一个是聚合器(获取 IP 地址,运行扫描函数,获取结果),第二个按顺序迭代端口以检查它们。

// ScannerThread является сканирующей горутиной, сюда попадают адреса после пингования
func ScannerThread(IPChannel chan string) {
    defer WorkWG.Done()

    for {
        ip, ok := <-IPChannel
        if ok {
            ports := scanHost(ip)
            if len(ports) != 0 {
                for _, port := range ports {
                    println(ip, port)
                }
            }
        } else {
            break
        }
    }
}

// Функция сканирует порты конкретного адреса
func scanHost(ip string) []int {
    openPorts := make([]int, 0)

    for port := 1; port <= 1024; port++ {
        d := net.Dialer{Timeout: time.Millisecond * 100}
        conn, err := d.Dial("tcp", ip+":"+strconv.Itoa(port))

        if err == nil {
            conn.Close()
            openPorts = append(openPorts, port)
        }
    }

    return openPorts
}

我想收到什么

我需要一种方法来估计此类流量的网络接口拥塞情况。即使最终发现超载的不是我设备的网络接口,而是沿途的节点,我仍然想确保这不是我的设备的问题。然而,我仍然很乐意接受其他想法和解释,解释为什么这项任务的延迟会增加这么多。

请,如果您想提供某种可以测量某些参数的实用程序,请尝试还包括对该实用程序测量哪些参数的解释,因为我需要在我的程序中实现这一点,并且使用控制台输出解析是不礼貌的。

附加信息

  1. 我使用的是主板内置的 Realtek RTL8118AS 网卡,标称带宽为 1 Gbps。
  2. 在整个本地网络中,我使用 UTP cat 5e。
  3. 我使用 Linux,或者更确切地说是 Arch Linux。
  4. 我用不同的工具测试了处理器负载,负载平均增加了10-15%,即处理器没有过载。
linux
  • 1 个回答
  • 84 Views
Martin Hope
videxerion
Asked: 2024-08-09 03:49:45 +0000 UTC

如何评估网络接口的负载?

  • 5

我正在创建一个严重加载网络接口的应用程序。为了控制其过载,我想以某种方式评估其工作负载并在阈值处应用措施。但不幸的是,我不知道如何评估工作量,或者更确切地说,我什至不知道要查看哪些参数以及在哪里可以找到它们。

linux
  • 3 个回答
  • 45 Views
Martin Hope
videxerion
Asked: 2024-02-19 12:27:51 +0000 UTC

使用多个 Golang 模块组织项目结构

  • 7

1个项目将包含3个不同的程序:Repeater、Controller和Executor,我认为有必要为每个程序分配自己的模块。我想制作一个模块,他们将导入一组特定的通用功能。到目前为止,我们能做的最好的就是将具有这些常用功能的文件副本添加到每个模块中,这看起来不太好。我花了 4 个小时查阅文章和视频教程,但我仍然无法将函数从一个不幸的模块导入到另一个同样不幸的模块中。我寻求帮助,尽可能详细地解释如何做我想做的事(如果可能的话)。

golang
  • 1 个回答
  • 33 Views
Martin Hope
videxerion
Asked: 2023-06-25 23:59:09 +0000 UTC

如何限制wxpython表中的列拉伸

  • 5

我有一个这样的表:

# Создаем таблицу
grid = wx.grid.Grid(panel)

grid.CreateGrid(0, 2)  # 5 строк, 2 столбца
grid.SetColLabelValue(0, "IP")
grid.SetColLabelValue(1, "BANNER")
grid.AutoSizeColumns()

在此输入图像描述

我需要这样做,以便用户不能无限期地拉伸列的宽度,如下所示: 在此输入图像描述

我该怎么做?

python
  • 1 个回答
  • 37 Views
Martin Hope
videxerion
Asked: 2022-04-21 22:46:53 +0000 UTC

切换到新的 pywinauto 窗口

  • 1

自动化一个程序。一开始,当我在那里运行它时,登录面板(登录),我单击按钮进一步进入,窗口关闭,过了一会儿又出现了另一个任务:

  1. 等待新窗口出现
  2. 切换到此窗口以便您可以使用它

这是代码:

from pywinauto.application import Application
import pywinauto.mouse as mouse

app = Application(backend="uia").start("Alien Crypter v3.exe")
windows = app.window(title="Alien Crypter", auto_id="Form2", control_type="Window").wait('visible', timeout=20, retry_interval=0.5)

def login(app):
    coords = app.Dialog.child_window(title="Login", auto_id="Guna2GradientTileButton1", control_type="Pane").rectangle().mid_point()
    mouse.click(coords=(coords.x, coords.y))
login(app)
python
  • 1 个回答
  • 10 Views
Martin Hope
videxerion
Asked: 2022-04-19 18:27:09 +0000 UTC

通过 Telegram 发送文件后,文件损坏

  • 0

决定实现用户在机器人(aiogram)中存储可执行文件的能力。首先,我得到一个文件,读取其所有位,将其编码为 base64,然后将其写入数据库。当用户请求文件时,我从数据库中获取 base64,对其进行解码,将位写入文件并将其发送给用户。问题:当我通过方法发送文件时,bot.send_document()文件损坏,即无法正常工作。我检查了所有阶段,并且在每个阶段文件都在工作,即使是从数据库中进行 base64 解码后生成的文件也可以工作,并且它也可以启动,但是发送的文件没有启动并且很可能是损坏的。

我还比较了接收时和从基中提取时的base64和位,它们是相同的!也就是说,我相信问题不在我这边,因为一切都对我有用。

以下是一些代码(python)和一个用于生成 base64 代码的库:

base64-链接

从base64创建文件的函数,输入:

name - 文件的名称

base-base64

def write_file_bit(self, name, base):
    file = open(f'{name}', 'wb')
    base64_string = base64.b64decode(base)
    file.write(base64_string)

从字节创建base64的函数,输入:

bytes - 从文件接收到的字节数

def bytes_to_base(self, bytes):
    base64_string = base64.b64encode(bytes)
    return base64_string

获取文件并添加到数据库:

    data = await state.get_data()
    document_id = msg.document.file_id
    file_info = await bot.get_file(document_id)
    fi = file_info.file_path
    name = msg.document.file_name
    r = requests.get(f'https://api.telegram.org/file/bot{TOKEN}/{fi}', f'./{name}')
    bytes = r.content
    base = file_work.bytes_to_base(bytes)

    try:
        database.add_to_queue_exe(msg.from_user.id, base, name, data['name_service'])
        create_buttons(['Вернуться на главную🔙'])
        await bot.send_message(msg.from_user.id, f'Программа успешно добавлена,её можно посмотреть в личном кабинете', reply_markup=greet_kb)
    except Exception as e:
        print(e)
        create_buttons(['Вернуться на главную🔙'])
        await bot.send_message(msg.from_user.id, f'Неизвесная ошибка❌ Пожалуйста сообщите администрации', reply_markup=greet_kb)

从数据库中获取base64,创建文件并发送给用户:

    base = database.get_base_file_user(exes[couter][3])[2:-1]
    random_name = random.randint(1,157153717531753715371)
    expansion = exes[couter][1][str(exes[couter][1]).rfind('.') + 1:]
    file_work.write_file_bit(f'{random_name}.{expansion}', base)
    await bot.send_document(user_msg.from_user.id, (exes[couter][1], f'{random_name}.{expansion}'))
    #os.remove(f'{random_name}.{expansion}')

最后我注释掉了创建后删除文件的行,这个文件正在工作

如果我简单地重复该问题,则该文件无法正常工作,并且问题绝对不在我这边。在此先感谢您的帮助!

python
  • 1 个回答
  • 10 Views
Martin Hope
videxerion
Asked: 2022-08-21 18:25:57 +0000 UTC

PYAUTOGUI 间歇性地停止点击

  • 0

您好,我最近遇到一个问题,我通过识别屏幕上的按钮来自动按下模拟器。问题是当我pyautogui.click()偶尔使用它时它不会点击,将鼠标悬停在图标上但不会点击。然后这个问题就幻影消失了,我应该怎么做才能防止这种情况发生呢?

python
  • 1 个回答
  • 10 Views
Martin Hope
videxerion
Asked: 2022-08-17 19:55:19 +0000 UTC

如何在最小化窗口中用pywinauto编写

  • 3

我需要实现一个脚本,该脚本将在最小化窗口中写入一些文本,例如记事本。这里的 pyautowin 库是我的代码:

from pywinauto.application import Application
app = Application(backend="uia").start("notepad.exe")
dlg = app.window(title="Безымянный – Блокнот")
dlg.type_keys("Я{SPACE}крутой{SPACE}бот{ENTER}")
dlg = app.window(title="*Безымянный – Блокнот")
for i in range(100):
    dlg.type_keys("Я{SPACE}крутой{SPACE}бот{ENTER}")
python
  • 1 个回答
  • 10 Views
Martin Hope
videxerion
Asked: 2022-06-10 20:59:27 +0000 UTC

如何创建 arp scapy 响应?

  • 0

在 scapy 上,您可以创建一个 arp 请求

pkt = Ether(dst='ff:ff:ff:ff:ff')/ARP(pdst='192.168.43.1')

Wireshark 看起来像这样: 在此处输入图像描述

我想知道如何创建一个不会发出请求但响应请求的包: 在此处输入图像描述

python
  • 1 个回答
  • 10 Views
Martin Hope
videxerion
Asked: 2022-02-28 01:16:28 +0000 UTC

如何获取 aiogram 用户 id

  • 2

我们需要获取使用该机器人的用户的 ID。如何在 aiogram 中做到这一点?

python
  • 1 个回答
  • 10 Views
Martin Hope
videxerion
Asked: 2022-02-23 05:43:41 +0000 UTC

如何在python中绘制图像

  • 0

我面临着编写餐桌预订机器人的任务。有几张表,数据库说明其中哪些被占用,哪些未被占用。任务是能够画出这样的图片:

在此处输入图像描述

你需要从数据库中取值,然后实时生成一张图片,用红色标记忙,用绿色标记空闲。如何实施?

python
  • 1 个回答
  • 10 Views
Martin Hope
videxerion
Asked: 2022-01-28 03:51:09 +0000 UTC

为什么第二次调用函数时数字不能整除?

  • 0
#include <iostream>
using namespace std;

int generateRandBone(){
    int Bone = 0; // какого чёрта на второе срабатывание оно не обнуляет?
    while (true) {
        Bone = rand() % 6;
        if (Bone != 0) {
            break;
            return Bone;
        }
    }
}

int oneBone, twoBone;

int main()
{
    setlocale(LC_CTYPE, "");

    cout << "Кто первый ходит?\n";
    cout << "1) Человек\n";
    cout << "2) Бот\n";
    cout << "3) Рандом\n";
    
    int userInput;

    cin >> userInput;

    if (userInput == 1) {
        while (true)
        {
            oneBone = generateRandBone(); // пытался делить прям во функции, но а второй раз не делилось
            twoBone = generateRandBone();
            cout << "Вы потрясли кости в руке, хотите потрясти ещё или бросить?";
            cout << "1) Потрясти ещё";
            cout << "2) Бросить";
            cin >> userInput;
            if (userInput == 1)
            {
                ;
            }
            else {
                break;
            }
        }
        cout << oneBone;
        switch (oneBone)
        {
        case 1:
            cout << "===========" << endl;
            cout << "|         |" << endl;
            cout << "|         |" << endl;
            cout << "|    *    |" << endl;
            cout << "|         |" << endl;
            cout << "|         |" << endl;
            cout << "===========" << endl;
            break;
        case 2:
            cout << "===========" << endl;
            cout << "|         |" << endl;
            cout << "|    *    |" << endl;
            cout << "|         |" << endl;
            cout << "|    *    |" << endl;
            cout << "|         |" << endl;
            cout << "===========" << endl;
            break;
        case 3:
            cout << "===========" << endl;
            cout << "|         |" << endl;
            cout << "|  *      |" << endl;
            cout << "|    *    |" << endl;
            cout << "|      *  |" << endl;
            cout << "|         |" << endl;
            cout << "===========" << endl;
            break;
        case 4:
            cout << "===========" << endl;
            cout << "|         |" << endl;
            cout << "|  *   *  |" << endl;
            cout << "|         |" << endl;
            cout << "|  *   *  |" << endl;
            cout << "|         |" << endl;
            cout << "===========" << endl;
            break;
        case 5:
            cout << "===========" << endl;
            cout << "|         |" << endl;
            cout << "|  *   *  |" << endl;
            cout << "|    *    |" << endl;
            cout << "|  *   *  |" << endl;
            cout << "|         |" << endl;
            cout << "===========" << endl;
            break;
        case 6:
            cout << "===========" << endl;
            cout << "|         |" << endl;
            cout << "|  *   *  |" << endl;
            cout << "|  *   *  |" << endl;
            cout << "|  *   *  |" << endl;
            cout << "|         |" << endl;
            cout << "===========" << endl;
            break;
        }
    }
}

为什么第二代函数不能被6整除?

c++
  • 1 个回答
  • 10 Views
Martin Hope
videxerion
Asked: 2022-01-16 17:10:01 +0000 UTC

不能使用自动增量

  • 4

根据指南,我尝试在我的脚本中添加自动增量,但由于某种原因它需要传递一个 column id,但我在指南中没有这个。

你怎么能做对?

import sqlite3

db = sqlite3.connect('server.db')
sql = db.cursor()
sql.execute("""CREATE TABLE IF NOT EXISTS users (
    id INTEGER PRIMARY KEY autoincrement,
    login TEXT,
    password TEXT
)""")
db.commit()

user_login = input("Login: ")
user_passwd = input("Password: ")

sql.execute("SELECT login FROM users")
if sql.fetchone() is None:
    sql.execute("INSERT INTO users VALUES (?,?)", (user_login, user_passwd) )
    db.commit()
else:
    print("Такая запись уже есть")

在此处输入图像描述

错误消息文本:

OperationalError:表用户有 3 列但提供了 2 个值

python
  • 1 个回答
  • 10 Views
Martin Hope
videxerion
Asked: 2022-01-11 04:39:14 +0000 UTC

如何使代码尽可能快?

  • 2

我有一个 C 代码,可以将一个数字分解成对(蛮力)。有什么方法可以加快代码速度,尽管提高了 1 毫秒(除了多线程)

#include <stdio.h>
#include <stdlib.h>
#include <time.h>

clock_t start, end;

void main() {
    int first = 1;
    int userInput;

    scanf_s("%d", &userInput);
    int Two = userInput;
    start = clock();
    while (first != userInput){
        Two = userInput;
        while (Two != 0) {
            if (Two != 1){
                if (first * Two == userInput) {
                    printf("%d %d\n", first, Two);
                }
            }
            Two--;
        }
        first++;
    }
    end = clock();
    printf("The above code block was executed in %.4f second(s)\n", ((double)end - start) / ((double)CLOCKS_PER_SEC));
    system("PAUSE");
}
c
  • 3 个回答
  • 10 Views
Martin Hope
videxerion
Asked: 2021-12-07 13:01:40 +0000 UTC

如何排列元素

  • 0

如何在布局上排列元素?发生了什么:

在此处输入图像描述

布局: 在此处输入图像描述

.logo {
  float: left;
  margin-top: 0;
  margin-bottom: 0;
  width: 248px;
  font-family: 'Leckerli One', cursive;
  font-weight: normal;
  font-size: 64px;
  color: #F34A4A;
  -webkit-touch-callout: none;
  /* iOS Safari */
  -webkit-user-select: none;
  /* Chrome/Safari/Opera */
  -khtml-user-select: none;
  /* Konqueror */
  -moz-user-select: none;
  /* Firefox */
  -ms-user-select: none;
  /* Internet Explorer/Edge */
  user-select: none;
  /* Non-prefixed version, currently */
}

.head {
  width: 100%;
  height: 87px;
  background: #222F34;
}


/*.main {
      background: #615049;
      display: flex;
      width: 100%;
      height: 100%;
    }*/

.vl {
  float: left;
  padding-left: 1%;
  margin-top: 5px;
  margin-bottom: 2px;
  border-left: 6px solid #F1D3BC;
  height: 76px;
  width: 2px;
}

.link {
  -webkit-touch-callout: none;
  /* iOS Safari */
  -webkit-user-select: none;
  /* Chrome/Safari/Opera */
  -khtml-user-select: none;
  /* Konqueror */
  -moz-user-select: none;
  /* Firefox */
  -ms-user-select: none;
  /* Internet Explorer/Edge */
  user-select: none;
  /* Non-prefixed version, currently */
  display: inline-block;
  margin-top: 10px;
  padding-left: 30px;
  font-family: 'Jura', sans-serif;
  font-weight: bold;
  font-size: 48px;
  color: #F34A4A;
  height: auto;
}

.link:hover {
  color: #d83232;
}

body {
  margin: 0;
  background: #615049;
}

a {
  text-decoration: none;
  /* Отменяем подчеркивание у ссылки */
}

.foot {
  width: auto;
  height: auto;
  background: #F1D3BC;
  border-radius: 53px;
  margin: 60px;
}

.text {
  margin: 0px;
  font-family: 'Jura', sans-serif;
  padding: 1.5%;
  font-style: normal;
  font-weight: normal;
  font-size: 30px;
  line-height: 43px;
  color: #222F34;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.name {
  vertical-align: top;
  display: inline-block;
  margin: 0px;
  padding-top: 20px;
  padding-left: 25px;
  font-family: 'Jura', sans-serif;
  font-style: normal;
  font-weight: bold;
  font-size: 30px;
  line-height: 43px;
  color: #F34A4A;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.logoMin {
  display: inline-block;
  padding-top: 20px;
  padding-left: 25px;
  padding-bottom: 20px;
  width: 200px;
  height: 200px;
}

.textNews {
  vertical-align: top;
  display: inline-block;
  margin: 0px;
  padding-top: 20px;
  padding-left: 25px;
  font-family: 'Jura', sans-serif;
  font-style: normal;
  font-weight: normal;
  font-size: 24px;
  line-height: 28px;
  color: #222F34;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}
<div class="head">
  <h1 class="logo">BaseSec</h1>
  <div class="vl"></div>
  <a class="link" href="news.html">НОВОСТИ</a>
  <a class="link" href="#">СТАТЬИ</a>
  <a class="link" href="#">ПРОФИЛЬ</a>
</div>
<div class="foot">
  <div class="">
    <img class="logoMin" src="unknown1.svg">
    <h2 class="name">Сайт кибер безопастности BaseSec</h2>
    <p class="textNews">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure
      dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
  </div>
</div>

html
  • 1 个回答
  • 10 Views
Martin Hope
videxerion
Asked: 2021-12-07 07:02:51 +0000 UTC

如何使div自动拉伸

  • 0

你好,我有一个页面。它有背景,所以如果文本太多,它只会爬过背景。如何让背景自动继续在它们后面的文字

<!DOCTYPE html>
<html lang="ru" dir="ltr">
  <head>
    <link rel="preconnect" href="https://fonts.gstatic.com">
    <link href="https://fonts.googleapis.com/css2?family=Leckerli+One&display=swap" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Jura:wght@300&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="css/style.css">
    <meta charset="utf-8">
    <title></title>
  </head>
  <body>
    <div class="head">
      <h1 class="logo">BaseSec</h1>
      <div class="vl"></div>
      <a class="link" href="#">НОВОСТИ</a>
      <a class="link" href="#">СТАТЬИ</a>
      <a class="link" href="#">ПРОФИЛЬ</a>
    </div>
    <div class="foot">
      <h2 class="name">Сайт кибер безопастности BaseSec</h2>
      <p class="text">Данный сайт создан для того что бы специалисты по кибер безопастности по всей России делились своими знаниями и опытом.</p>
      <p class="text">На BaseSec можно найти различные интересные статьи на тему безопастности, а так же создать свои</p>
      <p class="text">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
      <p class="text">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
      <p class="text">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
    </div>
  </body>
</html>



.logo {
  float: left;
  margin-top: 0;
  margin-bottom: 0;
  width: 248px;

  font-family: 'Leckerli One', cursive;
  font-weight: normal;
  font-size: 64px;
  color: #F34A4A;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Chrome/Safari/Opera */
  -khtml-user-select: none;    /* Konqueror */
  -moz-user-select: none;      /* Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently */
}
.head {
  width: 100%;
  height: 87px;

  background: #222F34;
}
/*.main {
  background: #615049;
  display: flex;
  width: 100%;
  height: 100%;
}*/
.vl {
  float: left;
  padding-left: 1%;
  margin-top: 5px;
  margin-bottom: 2px;
  border-left: 6px solid #F1D3BC;
  height: 76px;
  width: 2px;
}
.link {
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Chrome/Safari/Opera */
  -khtml-user-select: none;    /* Konqueror */
  -moz-user-select: none;      /* Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently */

  display:inline-block;
  margin-top: 10px;
  padding-left: 30px;
  font-family: 'Jura', sans-serif;
  font-weight: bold;
  font-size: 48px;

  color: #F34A4A;
  height: 63px;
}
.link:hover {
  color: #d83232;
}
body {
  margin: 0;
  background: #615049;
}
a {
    text-decoration: none; /* Отменяем подчеркивание у ссылки */
}
.foot{
  width: 1564px;
  height: 790px;

  background: #F1D3BC;
  border-radius: 53px;
  margin: 60px;
}
.text {
  margin: 0px;
  font-family: 'Jura', sans-serif;
  padding: 1.5%;
  font-style: normal;
  font-weight: normal;
  font-size: 30px;
  line-height: 43px;

  color: #222F34;

  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}
.name {
  margin: 0px;
  padding-top: 20px;
  padding-left: 25px;
  font-family: 'Jura', sans-serif;
  font-style: normal;
  font-weight: bold;
  font-size: 30px;
  line-height: 43px;

  color: #F34A4A;

  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}
html
  • 1 个回答
  • 10 Views
Martin Hope
videxerion
Asked: 2021-12-06 05:17:49 +0000 UTC

本地服务器启动但无法访问它[关闭]

  • 1
关闭 这个问题是题外话。目前不接受回复。

该问题是由不再复制的问题或错字引起的。虽然类似问题可能与本网站相关,但该问题的解决方案不太可能帮助未来的访问者。通常可以通过在发布问题之前编写和研究一个最小程序来重现问题来避免此类问题。

1 年前关闭。

改进问题

安装了 Django 并创建了一个项目。我正在尝试启动服务器。它启动了,但我无法访问它。

可能是什么问题呢?

C:\Users\videx\Desktop\BaseSec2\BaseSec>python manage.py runserver
Watching for file changes with StatReloader
Performing system checks...

System check identified no issues (0 silenced).
December 06, 2020 - 00:11:49
Django version 3.1.4, using settings 'BaseSec.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.

在此处输入图像描述

python
  • 1 个回答
  • 10 Views
Martin Hope
videxerion
Asked: 2021-12-05 20:58:46 +0000 UTC

如何从div中删除填充

  • 0

如何去除缩进?通过互联网翻遍并没有帮助这里是标记:

.logo {
  position: absolute;
  width: 348px;
  height: 63px;

  font-family: 'Leckerli One', cursive;
  font-style: normal;
  font-weight: normal;
  font-size: 54px;
  line-height: 86px;
  display: flex;
  align-items: center;
  text-align: center;

  color: #F34A4A;

  margin-top: 5px;
  margin-left: 5px;
}

.foot {
  position: absolute;
  width: 1920px;
  height: 87px;

  background: #222F34;
}
<!DOCTYPE html>
    <html lang="ru" dir="ltr">
      <head>
        <link rel="preconnect" href="https://fonts.gstatic.com">
        <link href="https://fonts.googleapis.com/css2?family=Leckerli+One&display=swap" rel="stylesheet">
        <link rel="stylesheet" href="css/style.css">
        <meta charset="utf-8">
        <title></title>
      </head>
      <body>
        <div class="foot">
          <h1 class="logo">BaseSec</h1>
        </div>
      </body>
    </html>

html
  • 1 个回答
  • 10 Views
Martin Hope
videxerion
Asked: 2020-09-22 00:19:25 +0000 UTC

如何获取本地网络中的操作系统名称

  • 2

我需要通过本地网络上的 ip 地址获取操作系统名称。如何才能做到这一点?

python
  • 1 个回答
  • 10 Views
Martin Hope
videxerion
Asked: 2020-08-23 04:47:45 +0000 UTC

Telebot 在尝试执行命令时崩溃

  • 0

我决定写一个你发送命令的机器人,它自己执行它,并发送结果。一切正常,但我决定输入c:/然后这是一个奇迹 在此处输入图像描述

我不知道如何处理它是代码:

import os
import telebot;
bot = telebot.TeleBot('токен');


@bot.message_handler(content_types=['text'])
def startCmd(message):
    mess = message.text
    print(mess)
    date = str(os.popen(mess).read())
    date = str(date.encode('cp1251').decode('cp866'))
    print(date)
    bot.send_message(message.chat.id, date)


bot.polling(none_stop=True, interval=0)
python
  • 1 个回答
  • 10 Views

Sidebar

Stats

  • 问题 10021
  • Answers 30001
  • 最佳答案 8000
  • 用户 6900
  • 常问
  • 回答
  • Marko Smith

    我看不懂措辞

    • 1 个回答
  • Marko Smith

    请求的模块“del”不提供名为“default”的导出

    • 3 个回答
  • Marko Smith

    "!+tab" 在 HTML 的 vs 代码中不起作用

    • 5 个回答
  • Marko Smith

    我正在尝试解决“猜词”的问题。Python

    • 2 个回答
  • Marko Smith

    可以使用哪些命令将当前指针移动到指定的提交而不更改工作目录中的文件?

    • 1 个回答
  • Marko Smith

    Python解析野莓

    • 1 个回答
  • Marko Smith

    问题:“警告:检查最新版本的 pip 时出错。”

    • 2 个回答
  • Marko Smith

    帮助编写一个用值填充变量的循环。解决这个问题

    • 2 个回答
  • Marko Smith

    尽管依赖数组为空,但在渲染上调用了 2 次 useEffect

    • 2 个回答
  • Marko Smith

    数据不通过 Telegram.WebApp.sendData 发送

    • 1 个回答
  • Martin Hope
    Alexandr_TT 2020年新年大赛! 2020-12-20 18:20:21 +0000 UTC
  • Martin Hope
    Alexandr_TT 圣诞树动画 2020-12-23 00:38:08 +0000 UTC
  • Martin Hope
    Air 究竟是什么标识了网站访问者? 2020-11-03 15:49:20 +0000 UTC
  • Martin Hope
    Qwertiy 号码显示 9223372036854775807 2020-07-11 18:16:49 +0000 UTC
  • Martin Hope
    user216109 如何为黑客设下陷阱,或充分击退攻击? 2020-05-10 02:22:52 +0000 UTC
  • Martin Hope
    Qwertiy 并变成3个无穷大 2020-11-06 07:15:57 +0000 UTC
  • Martin Hope
    koks_rs 什么是样板代码? 2020-10-27 15:43:19 +0000 UTC
  • Martin Hope
    Sirop4ik 向 git 提交发布的正确方法是什么? 2020-10-05 00:02:00 +0000 UTC
  • Martin Hope
    faoxis 为什么在这么多示例中函数都称为 foo? 2020-08-15 04:42:49 +0000 UTC
  • Martin Hope
    Pavel Mayorov 如何从事件或回调函数中返回值?或者至少等他们完成。 2020-08-11 16:49:28 +0000 UTC

热门标签

javascript python java php c# c++ html android jquery mysql

Explore

  • 主页
  • 问题
    • 热门问题
    • 最新问题
  • 标签
  • 帮助

Footer

RError.com

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

帮助

© 2023 RError.com All Rights Reserve   沪ICP备12040472号-5