RError.com

RError.com Logo RError.com Logo

RError.com Navigation

  • 主页

Mobile menu

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

Software Sec's questions

Martin Hope
Software Sec
Asked: 2022-09-09 20:45:18 +0000 UTC

如何在 Python 模块中输出错误字符串

  • 0

如何在模块中输出错误字符串?

python
  • 0 个回答
  • 0 Views
Martin Hope
Software Sec
Asked: 2022-09-09 20:27:00 +0000 UTC

vsc 为您的语言创建自定义语法突出显示

  • 0

我写我自己的语言。我想在 vsc 中为它写我自己的语法高亮。我怎样才能做到这一点?

visual-studio-code
  • 0 个回答
  • 0 Views
Martin Hope
Software Sec
Asked: 2022-08-31 21:45:25 +0000 UTC

蟒蛇 | PyQt5 | 图形用户界面 |

  • 2

如何在 PyQt5 中时尚地实现这段代码?我不懂 PyQt5 也不知道怎么用。

import requests
import time
import json

ip = input('IP : ')

if ip == '':
    print('[Info] Ваш ip')
    response = requests.get(url=f'http://ip-api.com/json/').json()
    ip = response.get('query')
else:
    response = requests.get(url=f'http://ip-api.com/json/{ip}').json()
try:
    data = {'[⚝ IP]': response.get('query'),'∟[Int prov]': response.get('isp'),'∟[Org]': response.get('org'),'∟[Country]': response.get('country'),'∟[Region Name]': response.get('regionName'),'∟[City]': response.get('city'),'∟[ZIP]': response.get('zip'),'∟[Lat]': response.get('lat'),'∟[Lon]': response.get('lon')}
except:
    print('IP address entered incorrectly')
for k, v in data.items():
    
    info = f'{k} : {v}' + '\n';txt = info
    for i in txt:   time.sleep(0.001);print(i, end= '', flush=True)
python
  • 1 个回答
  • 68 Views
Martin Hope
Software Sec
Asked: 2022-08-17 17:35:41 +0000 UTC

HTML | 按钮样式错误

  • 1

这里有一个文件**main.html**是按钮代码。为什么它不起作用?

  body {
  .custom-btn {
    width: 130px;
    height: 40px;
    color: #fff;
    border-radius: 5px;
    padding: 10px 25px;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    box-shadow: inset 2px 2px 2px 0px rgba(255, 255, 255, .5), 7px 7px 20px 0px rgba(0, 0, 0, .1), 4px 4px 5px 0px rgba(0, 0, 0, .1);
    outline: none;
  }
  .btn-9 {
    border: none;
    transition: all 0.3s ease;
    overflow: hidden;
  }
  .btn-9:after {
    position: absolute;
    content: " ";
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1fd1f9;
    background-image: linear-gradient(315deg, #1fd1f9 0%, #b621fe 74%);
    transition: all 0.3s ease;
  }
  .btn-9:hover {
    background: transparent;
    box-shadow: 4px 4px 6px 0 rgba(255, 255, 255, .5), -4px -4px 6px 0 rgba(116, 125, 136, .2), inset -4px -4px 6px 0 rgba(255, 255, 255, .5), inset 4px 4px 6px 0 rgba(116, 125, 136, .3);
    color: #fff;
  }
  .btn-9:hover:after {
    -webkit-transform: scale(2) rotate(180deg);
    transform: scale(2) rotate(180deg);
    box-shadow: 4px 4px 6px 0 rgba(255, 255, 255, .5), -4px -4px 6px 0 rgba(116, 125, 136, .2), inset -4px -4px 6px 0 rgba(255, 255, 255, .5), inset 4px 4px 6px 0 rgba(116, 125, 136, .3);
  }
<button class="custom-btn btn-9">Download</button>

html css
  • 1 个回答
  • 23 Views
Martin Hope
Software Sec
Asked: 2022-08-17 17:04:29 +0000 UTC

如何获得 python 脚本的版权?

  • 0

如何为python脚本获取 AP 。

或者如何确保它不被盗并为自己重写?

如何保护脚本不被窥探?

python лицензирование
  • 4 个回答
  • 70 Views
Martin Hope
Software Sec
Asked: 2022-08-13 23:01:55 +0000 UTC

如何制作自己的移动框并移除框架?

  • 3

如何制作自己的移动框并移除框架。

有一个窗口。但他有一个我想删除的框架。 并为移动窗口制作一个字段,但不要将其放在顶部,而是放在底部。

是否有可能做到这一点?如何?

nain.py

from tkinter import *
from tkinter import filedialog
from turtle import title
from pygame import mixer #pip install pygame


class MusicPlayer:
    def __init__(self, window ):
        g = 0
        text = 'Pause'
        window.geometry('330x110'); window.title('Это нужно убрать!'); window.resizable(0,0)
        Load = Button(window, relief='flat', text = 'Load', bg = 'black', fg = 'white', width = 10, font = ('Comic', 10), command = self.load)
        Play = Button(window, relief='flat', text = 'Play', bg = 'black', fg = 'white', width = 10,font = ('Comic', 10), command = self.play)
        Pause = Button(window,relief='flat', text = text, bg = 'black', fg = 'white', width = 10, font = ('Comic', 10), command = self.pause)
        Stop = Button(window ,relief='flat', text = 'Stop', bg = 'black', fg = 'white', width = 10, font = ('Comic', 10), command = self.stop)
        Title = Label(text = 'Alis',bg = 'black', fg = 'white')
        X = Button(window ,text = '×',relief='flat', bg = 'black', fg = 'white', width = 1, font = ('Times', 20), command = self.exit)
        
        Load.place(x=0,y=20);Play.place(x=110,y=20);Pause.place(x=220,y=20);Stop.place(x=110,y=60);X.place(x=305,y=70);Title.place(x=0,y=90)
        self.music_file = False
        self.playing_state = False
    def load(self):
        self.music_file = filedialog.askopenfilename()
    def play(self):
        if self.music_file:
            mixer.init()
            mixer.music.load(self.music_file)
            mixer.music.play()
    def pause(self):
        if not self.playing_state:
            mixer.music.pause()
            self.playing_state=True
            self.text = 'Play'
        else:
            mixer.music.unpause()
            self.playing_state = False
    def stop(self):
        mixer.music.stop()
    def exit(self):
        root.destroy()
root = Tk()
app= MusicPlayer(root)
root.lift()
root.wm_attributes("-topmost", True)
root.wm_attributes('-alpha',0.8)
root['bg'] = 'black'
root.mainloop()

在此处输入图像描述

python python-3.x
  • 1 个回答
  • 52 Views
Martin Hope
Software Sec
Asked: 2022-08-08 04:17:19 +0000 UTC

热解图 | Python 导入错误

  • 3
from asyncio import sleep
from Pyrogram import Client, filters #pip install tgcrypto, pip install pyrogram 


app = Client("my_account")
spam_text = 'spam'
delay = 0.25


@app.on_message(filters.command('spam', prefixes='.') & filters.me)
async def enable_spam(_, message):
    await message.delete()
    cmd = message.text.split()
    for i in range(int(cmd[1])):
        await message.reply_text(spam_text)
        await sleep(delay)

app.run()

pip 没有帮助,不知道该怎么办-我安装了一个模块!-

Traceback (most recent call last):
  File "c:\Users\ilyas\OneDrive\Рабочий стол\Bomber Telegram\main.py", li
ne 2, in <module>
    from Pyrogram import Client, filters #pip install tgcrypto, pip insta
ll pyrogram
ModuleNotFoundError: No module named 'Pyrogram'
python pip
  • 1 个回答
  • 88 Views
Martin Hope
Software Sec
Asked: 2022-08-05 01:26:31 +0000 UTC

如何从代码中仅获取链接,python

  • 1

大家好,我怎样才能从这个代码中只获得一个 YouTube 视频的链接?在这种情况下(https://www.youtube.com/watch?v=Sl59t_OBBKc),关键是有一个链接,但我不需要其他任何东西

#pip install youtube-search-python
from youtubesearchpython import VideosSearch

channelsSearch = VideosSearch('Привет песня', limit = 1)

print(channelsSearch.result(1))
python youtube-api
  • 1 个回答
  • 23 Views
Martin Hope
Software Sec
Asked: 2022-08-04 21:10:27 +0000 UTC

蟒蛇| 来自youtube视频的声音[关闭]

  • -1
关闭。这个问题需要具体说明。目前不接受回复。

想改进这个问题? 重新构建问题,使其只关注一个问题。

1 个月前关闭。

改进问题

如何从 youtube 视频中删除声音

python mp3
  • 1 个回答
  • 34 Views
Martin Hope
Software Sec
Asked: 2022-08-25 23:08:56 +0000 UTC

如何使用 cocies 制作网络应用程序 [关闭]

  • 0
关闭。这个问题需要具体说明。目前不接受回复。

你想改进这个问题吗? 重新构建问题,使其只关注一个问题。

2 个月前关闭。

改进问题

告诉我如何在Android Studio中制作一个应用程序,以便这个web应用程序将cocies存储在Android Data文件夹中。我还需要它能够正常工作,例如Spotify网站可以正常打开

java
  • 1 个回答
  • 32 Views
Martin Hope
Software Sec
Asked: 2022-07-25 00:37:03 +0000 UTC

如何获取脚本的名称?[复制]

  • 0
这个问题已经在这里得到了回答:
如何使文件检查其名称 [关闭] 1 个答案
2 个月前关闭。

大家好,有一个文件“main.py”,但是如果你把它重命名为“main1.py”,那它自然就不行了。底线是我需要 python 文件能够识别它的名称,帮我找出如何做到这一点?

python
  • 2 个回答
  • 53 Views
Martin Hope
Software Sec
Asked: 2022-07-22 23:51:23 +0000 UTC

蟒蛇 | 字符替换

  • 2

大家好,假设我有一个字符串

打印('你好世界')

如何在不更改内容的情况下替换这一行中的 print('')

python str
  • 1 个回答
  • 37 Views
Martin Hope
Software Sec
Asked: 2022-07-19 17:08:38 +0000 UTC

如何使文件检查其名称[关闭]

  • 0
关闭。这个问题需要澄清或补充细节。目前不接受回复。

想改进这个问题?通过编辑此帖子添加更多详细信息并澄清问题。

2 个月前关闭。

改进问题

我有一个 main.py 文件。但是,如果您重命名它,该文件将失去其大部分功能。

python
  • 1 个回答
  • 47 Views
Martin Hope
Software Sec
Asked: 2022-07-18 04:59:16 +0000 UTC

Python,错误 '\n' ,读取为字符串

  • 4
#https://sites.google.com/view/coderprogrammers/alis_version_checher

from turtle import width
import requests
from bs4 import BeautifulSoup
import json
version ='Version - 21.0.0'
url = f"https://sites.google.com/view/coderprogrammers/alis_version_checher"
req = requests.get(url)
soup = BeautifulSoup(req.text, "html.parser")
version_ACTUALITY = soup.find("div", class_="jXK9ad-SmKAyb").text
if version != version_ACTUALITY:
    print('Версия устарела')
    version_ACTUA = soup.find("div", class_="jXK9ad-SmKAyb").text
    print(version_ACTUA)
    with open ('vvvv.py', 'w',  encoding='utf-8') as f:
        f.write(version_ACTUA) 

else:
    print('Версия актуальна')

写了以下代码,我想自动更新文件,前提是它的版本不匹配,但是,当将代码写入文件时,它写了\ n作为一行而不是Enter,并且在print()中它显示同样的事情,请帮忙

python файлы
  • 1 个回答
  • 68 Views
Martin Hope
Software Sec
Asked: 2022-07-13 23:57:16 +0000 UTC

蟒蛇 | 如何制作一个可以在不删除前一个的情况下向自身添加代码的脚本

  • 3

但是我怎样才能让 .py 脚本在不删除代码的情况下向自身添加代码行,但将其移到下面,例如:

есть строчка 219
я при помощи скрипта добавляю туда код, файл дополняет сам себя
при этом не удаляя, а данные находящиеся в этой строчке перенося ниже на определённое колличество строчек
python файлы
  • 1 个回答
  • 54 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