我正在使用Hugo静态页面生成器构建一个个人网站,但是当我这样做时hugo serve,我不再看到一个页面,而只是一个空白页面localhost:1313.
我删除了所有内容并进行了全新安装.但是,Hugo仍在提供空白页面.
在空白页面中,我看到了之前网站草稿的Favicon,即使我删除了上一个主题中的所有内容.我在Chrome中清除了浏览器并尝试了其他浏览器,但它仍无法正常工作.
不知道我能提供什么信息,因为没有错误消息.我怎样才能解决这个问题?
我想知道是否有任何涵盖RSI-Divergence(快速和慢速之间的区别)的Python 库RSI或有关如何在 Python 中实现其算法的任何指导。
已经提出的问题:以编程方式检测 RSI 分歧。答案之一建议使用 Python 版本的quantconnect 论坛,但它没有涵盖任何内容。
我无法找到它的数学公式,但我能够在 pine-script 中找到RSI-Divergence,如下所示,但我无法将其转换为 Python,因为它无法pine-script使用tradingview进行调试。
Run Code Online (Sandbox Code Playgroud)study(title="RSI Divergence", shorttitle="RSI Divergence") src_fast = close, len_fast = input(5, minval=1, title="Length Fast RSI") src_slow = close, len_slow = input(14,minval=1, title="Length Slow RSI") up_fast = rma(max(change(src_fast), 0), len_fast) down_fast = rma(-min(change(src_fast), 0), len_fast) rsi_fast = down_fast == 0 ? 100 : up_fast == 0 ? 0 : 100 - (100 …
在Lua中(我只能找到其他语言的示例),如何从字符串中删除所有标点符号、特殊字符和空格?那么,例如,s t!r@i%p^(p,e"d会变成stripped?
所以我有2个清单:
L1 = ['a', 'b', 'c', 'd']
L2 = ['1', '2', '3', '4']
Run Code Online (Sandbox Code Playgroud)
我需要我的结果看起来像这样:
['a1', 'b2', 'c3', 'd4']
Run Code Online (Sandbox Code Playgroud)
我使用了for循环,但我似乎无法正确使用它.这就是我做的:
L3 = []
L1 = ['a', 'b', 'c', 'd']
L2 = ['1', '2', '3', '4']
for i in range(len(L1)):
L3 += L1[i] + L2[i]
print(L3)
Run Code Online (Sandbox Code Playgroud)
我的结果最终看起来像:
['a', '1', 'b', '2', 'c', '3', 'd', '4']
Run Code Online (Sandbox Code Playgroud)
这就是我的全部.任何帮助将不胜感激!
我想一次获取所有name键,但所有第一个字典键的含义不同,例如“50”、“70”等:
name=data(['50']['name'])# Working
name=data(['50', '70', '220']['name'])
#Not working
Run Code Online (Sandbox Code Playgroud)
如何['name']从以上所有键中抓取一次?
data = {
"50": {
"name": "Half-Life: Opposing Force",
"capsule": "https://cdn.akamai.steamstatic.com/steam/apps/50/header_292x136.jpg?t=1579628243",
"review_score": 9,
"review_desc": "Overwhelmingly Positive",
"reviews_total": "10,931",
"reviews_percent": 96,
"release_date": "941443200",
"release_string": "1 Nov, 1999",
"platform_icons": "<span class=\"platform_img win\"></span><span class=\"platform_img mac\"></span><span class=\"platform_img linux\"></span>",
"subs": [
{
"id": 32,
"discount_block": "<div class=\"discount_block discount_block_large\" data-price-final=\"59\"><div class=\"discount_pct\">-80%</div><div class=\"discount_prices\"><div class=\"discount_original_price\">$2.99</div><div class=\"discount_final_price\">$0.59 USD</div></div></div>",
"discount_pct": 80,
"price": 59
}
],
"type": "Game",
"screenshots": [
"0000000155.jpg",
"0000000156.jpg",
"0000000157.jpg",
"0000000158.jpg"
],
"review_css": "positive",
"priority": …Run Code Online (Sandbox Code Playgroud)