我有点困惑,我想在https://ens.domains/上买一个域名,而且一个域名的价格非常高,大约是150美元。这一价格大部分来自汽油费。令人困惑的是,ens告诉我下面的Estimated Total (Price + Gas). The gas price is based at 130 Gwei,而在https://ethgasstation.info/中,汽油价格是83。在ens是130,在and是83。对吗?为什么ENS会考虑更高的汽油价格?另外,在ENS中有什么方法可以看到估计的总量是如何计算的呢?
我试图验证用户输入的子域是否有效,但是不管我传入什么,它都是无效的。我知道regex是可以的,所以问题是我的"if“逻辑,但是我对shell/bash还不熟悉。
#!/bin/bash
#
echo Enter the subdomain\'s name to configure.
read SUBDOMAIN
if [[ ! $SUBDOMAIN =~ [A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])? ]]; then
echo "$SUBDOMAIN is not a valid domain"
fi
示
我正在使用YQL控制台来检索历史外汇价格,查询如下:
select * from yahoo.finance.historicaldata where symbol in ("EURUSD=X") and startDate = "2012-07-01" and endDate ="2012-07-16"
我的问题是,雅虎返回的价格是四舍五入到小数点后两位,这对外汇来说不是很有用,因为外汇报价通常(至少)是四位小数点。例如,下面是该查询结果的一个片段:
{
"date": "2012-07-13",
。
嗨,我正试图通过selenium获得域名的价格,页面没有加载,不知道为什么,我附上了屏幕截图,我的代码是:
import time
import chromedriver_autoinstaller
from selenium import webdriver
chromedriver_autoinstaller.install() # Check if the current version of chromedriver exists
# and if it doesn't exist, dow
假设我想从六个字母的单词中提取一个四个字母的单词,在“谢谢”中说“汉克”。假设还有一个有意义的四字母单词的列表,我想检查一下我刚刚提取的四个字母的单词是否有意义(也就是说,如果它出现在四个字母的单词列表中),那么我想返回所有从其中提取出有意义的四个字母单词的列表。我的想法是:
let is_4_init lst =
let acc = ([]) in
let f (group) x =
let y = String.sub x 1 4 in
if List.mem y my_4wo
我需要验证域名注册,因为它不能只由数字和验证需要适合我的算法工作的方式,即返回完整的域名(没有.com,.net等扩展名),如果它是正确的。
我尝试了几个表达式,但都没有成功:
^[^0-9]+$ # that one wont let he type a number
^\w[^0-9]+\w$ # that wont work too
有人能帮我吗?