我有一列有两个groupbox,每个都有一个GridLayout.
这是我的代码:
Window {
visible: true
width: 500
height: 480
title: qsTr("GridLayoutTest")
Column
{
GroupBox
{
contentWidth: gl1_.width
contentHeight: gl1_.height
GridLayout
{
id: gl1_
columns: 2
width: 200
Rectangle { Layout.preferredWidth: 60; Layout.preferredHeight: 25; color: "purple"; }
Rectangle { Layout.preferredWidth: 45; Layout.preferredHeight: 25; color: "purple"; }
Rectangle { Layout.preferredWidth: 50; Layout.preferredHeight: 25; color: "purple"; }
Rectangle { Layout.preferredWidth: 45; Layout.preferredHeight: 25; color: "purple"; }
}
}
GroupBox
{
contentWidth: gl2_.width
contentHeight: gl2_.height
GridLayout
{
id: gl2_ …Run Code Online (Sandbox Code Playgroud) 有人知道怎么做:
import html5lib
import urllib
from bs4 import BeautifulSoup
soup = BeautifulSoup(urllib.request.urlopen('http://someWebSite.com').read().decode('utf-8'), 'html5lib')
Run Code Online (Sandbox Code Playgroud)
使用aiohttp而不是urllib?
谢谢^^
我知道如何删除所有包含模式的行
sed -i '/pattern/d' file
Run Code Online (Sandbox Code Playgroud)
但是我应该如何删除该行和下一行?
例如,对于以下文件,我要删除所有“ Apple”和下一个水果
Apple
Peach
Lemon
Apple
Banana
Peach
Run Code Online (Sandbox Code Playgroud)
预期产量:
Lemon
Peach
Run Code Online (Sandbox Code Playgroud)
有人知道该怎么做吗?