小编Ros*_*tan的帖子

错误 400 无法使用 Openweathermap API 进行地理编码

我正在尝试将 openweathermap 用于我的 python 应用程序,但出现问题。我对此链接做了一个简单的请求:http://api.openweathermap.org/data/2.5/weather?q=London,fr&appid=[My Key]

我收到错误 400 消息Nothing to geocode

你知道这意味着什么吗?

openweathermap

5
推荐指数
1
解决办法
8271
查看次数

wxPython:更改标题的颜色

我想知道wxPython中是否有办法改变窗口这部分的背景颜色:

窗口的标题

我已经知道如何更改标题或图标,但我没有找到任何颜色。

我在 Windows 10 上使用 Python 3.6。

python user-interface wxpython

5
推荐指数
1
解决办法
2026
查看次数

JavaFX - 删除 TableView 中列之间的蓝线

我的 javafx 应用程序有一个 css 深色主题。一切都很好,除了一件事:当选择一个项目时,表视图中的列之间有一条蓝线:

截屏

这是我的 css 文件的样子:

.table-view {
    -fx-base: #1d1d1d;
    -fx-background-color: #1d1d1d;
    -fx-control-inner-background: #1d1d1d;
    -fx-table-cell-border-color: transparent;
    -fx-table-header-border-color: transparent;
    -fx-padding: 5;
}

.table-view .column-header-background {
    -fx-background-color: transparent;
}

.table-view .column-header, .table-view .filler {
    -fx-size: 35;
    -fx-border-width: 0 0 1 0;
    -fx-background-color: transparent;
    -fx-border-color: transparent transparent derive(-fx-base, 80%) transparent;
    -fx-border-insets: 0 10 1 0;
}

.table-view.column-header-background {
    -fx-background-color: transparent;
}

.table-view .column-header .label {
    -fx-font-size: 20;
    -fx-font-family: "Segoe UI Light";
    -fx-text-fill: white;
    -fx-alignment: center-left;
    -fx-opacity: 1;
}

.table-view:focused .table-row-cell:focused { …
Run Code Online (Sandbox Code Playgroud)

css java javafx

3
推荐指数
1
解决办法
2557
查看次数

当我使用元组时,'int'类型的参数是不可迭代的

运行程序时出现此错误,我不知道为什么。错误发生在说if prt in migration_p[j][0] and dst in migration_p[j][1]

migration_p = [(1, 3), (2, 4), (3, 3)]
link = {(1, 2): 200, (1, 3): 50, (2, 3): 100, (1, 4): 300, (2, 4): 100, (3, 4): 50}
source_servers = {1: [1, 2, 3], 2: [1, 2, 3]}
partition = {1: 200, 2: 200, 3: 500}


def time_qi(dst, prt):
    global size, bandwidth, min_time, source

    tqi_rsrc = []
    indexes = []
    for i in source_servers.keys():
        if (i, dst) in link.keys():
            bandwidth = …
Run Code Online (Sandbox Code Playgroud)

python

-3
推荐指数
1
解决办法
51
查看次数

标签 统计

python ×2

css ×1

java ×1

javafx ×1

openweathermap ×1

user-interface ×1

wxpython ×1