python - Flask 如何从 API 流创建依赖下拉列表
问题描述
我想创建两个相关的下拉列表,第一个具有静态内容,例如 Stake_Currency
stake_symbol = ('USDT','BNB','ETH','BTC') # content of the first drop down list where I can choose
第二个下拉列表应该从 API Stream 动态创建:
for symbol in trade_symbol:
if stake_symbol in symbol:
print (symbol)
#here I will get all symbols , so if I choose USDT I will get all USDT pairs , and son on
我发现的大多数答案都涉及使用数据库和 ajax,
解决方案
推荐阅读
- android - 如何在我当前的注册代码旁边验证 CheckBox?- 安卓工作室
- javascript - 如何忽略未使用参数的类型检查?
- javascript - ReferenceError:未定义名字 - JavaScript
- javascript - 如果出现 pg 错误,表示服务器关闭
- javascript - PhpStorm 实时编辑功能不起作用?[PhpStorm 2020.2]
- flutter - 如何返回 flotter 地理定位器位置值?(编程语言:飞镖)
- python - Python - Beautifulsoup | 为什么我的 find() 不起作用?
- python - 使用 pytorch 的 RNN 优化器
- ios - 堆栈视图分布异常
- javascript - 数组组和减少 - Javascript