RError.com

RError.com Logo RError.com Logo

RError.com Navigation

  • 主页

Mobile menu

Close
  • 主页
  • 系统&网络
    • 热门问题
    • 最新问题
    • 标签
  • Ubuntu
    • 热门问题
    • 最新问题
    • 标签
  • 帮助
主页 / user-518925

Dimych's questions

Martin Hope
Dimych
Asked: 2022-09-29 05:48:03 +0000 UTC

MODX HTTP ERROR 500 上的站点

  • 0

网站 roural.ru 在加载带有模板“父目录”和“目录”的页面时收到 HTTP 错误 ERROR 500。示例:http ://roural.ru/oborudovanie-benza.html

同时,带有“final final”模板的页面正常打开,响应为 200。示例:http ://roural.ru/nasos-perekachki-masla-benza-11.html

嵌套是这样的: 嵌套是

我试图做什么:我在托管设置中更改了 php 版本,我尝试了 5.6-7.4 的所有内容现在 php 7.4 我尝试了不同的 .htaccess 设置库存也尝试了最小设置我清理了缓存,在管理面板中并物理删除缓存文件夹中的所有内容

现在htaccess是这样的

php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors off
php_flag log_errors on
php_flag ignore_repeated_errors off
php_flag ignore_repeated_source off
php_flag report_memleaks on
php_flag track_errors on
php_value docref_root 0
php_value docref_ext 0
php_value error_log /home/t/toppropv/roural.ru/public_html/PHP_errors.log
php_value error_reporting 2047
php_value log_errors_max_len 0

<Files PHP_errors.log>
    Require all denied
</Files>

RewriteEngine On
RewriteBase /

RewriteCond %{HTTP_HOST} ^www.roural.ru$ [NC]
RewriteRule ^(.*)$ http://roural.ru/$1 [R=301,L]

RewriteCond %{QUERY_STRING} ^.*more=1.*
RewriteRule . - [R=404,L,NC]

# The Friendly URLs part
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

php_flag register_globals Off

<ifModule mod_expires.c>
    ExpiresActive On
    ExpiresDefault "access plus 5 seconds"
    ExpiresByType image/x-icon "access plus 2592000 seconds"
    ExpiresByType image/jpeg "access plus 2592000 seconds"
    ExpiresByType image/png "access plus 2592000 seconds"
    ExpiresByType image/gif "access plus 2592000 seconds"
    ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds"
    ExpiresByType text/css "access plus 604800 seconds"
    ExpiresByType text/javascript "access plus 216000 seconds"
    ExpiresByType application/javascript "access plus 216000 seconds"
    ExpiresByType application/x-javascript "access plus 216000 seconds"
    ExpiresByType text/html "access plus 600 seconds"
    ExpiresByType application/xhtml+xml "access plus 600 seconds"
</ifModule>
<ifModule mod_headers.c>
    <filesMatch "\.(ico|jpe?g|png|gif|swf)$">
        Header set Cache-Control "public"
    </filesMatch>
    <filesMatch "\.(css)$">
        Header set Cache-Control "public"
    </filesMatch>
    <filesMatch "\.(js)$">
        Header set Cache-Control "private"
    </filesMatch>
    <filesMatch "\.(x?html?|php)$">
        Header set Cache-Control "private, must-revalidate"
    </filesMatch>
</ifModule>

Options +FollowSymLinks
RewriteEngine On
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP
RewriteRule ^index\.php$ http://roural.ru/ [R=301,L]

Options +FollowSymLinks
RewriteEngine On
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.htm\ HTTP
RewriteRule ^index\.htm$ http://roural.ru/ [R=301,L]

这是怎么回事?

这是 URL 设置的样子

在此处输入图像描述

.htaccess url
  • 1 个回答
  • 20 Views
Martin Hope
Dimych
Asked: 2022-09-12 20:58:19 +0000 UTC

Python通过列表的名称,以及列表中值的个数来解析一个值列表

  • 0
data = {'lastUpdateId': 490726351, 
'bids': [['0.57860000', '518.00000000'], ['0.57850000', '643.00000000'], ['0.57840000', '518.00000000'], ['0.57830000', '407.00000000'], ['0.57820000', '446.00000000'], ['0.57810000', '419.00000000'], ['0.57790000', '68.00000000'], ['0.57780000', '1206.00000000'], ['0.57770000',
'4199.00000000'], ['0.57750000', '2791.00000000'], ['0.57730000', '267.00000000'], ['0.57720000', '5000.00000000'], ['0.57710000', '303.00000000'], ['0.57700000', '274.00000000'], ['0.57680000', '990.00000000'], ['0.57670000', '683.00000000'], ['0.57660000', '27.00000000'], ['0.57640000', '684.00000000'], ['0.57630000', '567.00000000'], ['0.57600000', '361.00000000'], ['0.57590000', '301.00000000'], ['0.57550000', '256.00000000'], ['0.57540000', '2980.00000000'], ['0.57500000', '2559.00000000'], ['0.57470000', '1836.00000000'], ['0.57440000', '1389.00000000'], ['0.57430000', '480.00000000'], ['0.57400000', '22.00000000'], ['0.57360000', '870.00000000'], ['0.57350000', '1190.00000000'], ['0.57340000', '48.00000000'], ['0.57330000', '648.00000000'], ['0.57290000', '1865.00000000'], ['0.57270000', '502.00000000'], ['0.57260000', '3601.00000000'], ['0.57230000', '873.00000000'], ['0.57190000', '141.00000000'], ['0.57180000', '583.00000000'], ['0.57160000', '1317.00000000'], ['0.57140000', '143.00000000'], ['0.57090000', '464.00000000'], ['0.57070000', '1204.00000000'], ['0.57060000', '48.00000000'], ['0.57040000', '518.00000000'], ['0.57030000', '1317.00000000'], ['0.57010000', '17447.00000000'], ['0.57000000', '9516.00000000'], ['0.56980000', '820.00000000'], ['0.56970000', '912.00000000'], ['0.56940000', '35.00000000'], ['0.56930000', '3582.00000000'], ['0.56920000', '1103.00000000'], ['0.56900000', '1142.00000000'], ['0.56810000', '637.00000000'], ['0.56800000', '100.00000000'], ['0.56770000', '3024.00000000'], ['0.56710000', '312.00000000'], ['0.56680000', '53.00000000'], ['0.56660000', '422.00000000'], ['0.56650000', '18.00000000'], ['0.56600000', '1202.00000000'], ['0.56560000', '26.00000000'], ['0.56500000', '189.00000000'], ['0.56490000', '100.00000000'], ['0.56470000', '910.00000000'], ['0.56420000', '313.00000000'], ['0.56410000', '89.00000000'], ['0.56400000', '101.00000000'], ['0.56390000', '115.00000000'], ['0.56270000', '551.00000000'], ['0.56210000', '578.00000000'], ['0.56200000', '22.00000000'], ['0.56170000', '25.00000000'], ['0.56130000', '39.00000000'], ['0.56120000', '557.00000000'], ['0.56070000', '2737.00000000'], ['0.56050000', '100.00000000'], ['0.56040000', '136.00000000'], ['0.56030000', '100.00000000'], ['0.56020000', '100.00000000'], ['0.56010000', '100.00000000'], ['0.56000000', '593.00000000'], ['0.55990000', '100.00000000'], ['0.55980000', '100.00000000'], ['0.55970000', '100.00000000'], ['0.55960000', '100.00000000'], ['0.55930000', '49.00000000'], ['0.55920000', '136.00000000'], ['0.55890000', '25.00000000'], ['0.55860000', '1676.00000000'],
['0.55810000', '155.00000000'], ['0.55800000', '994.00000000'], ['0.55710000', '25.00000000'], ['0.55700000', '128.00000000'], ['0.55650000', '299.00000000'], ['0.55590000', '359.00000000'], ['0.55560000', '36.00000000'], ['0.55520000', '180.00000000'], ['0.55510000', '344.00000000'], ['0.55500000', '5456.00000000']], 
'asks': [['0.57920000', '728.00000000'], ['0.57930000', '485.00000000'], ['0.57940000', '904.00000000'], ['0.57950000', '14480.00000000'], ['0.58070000', '6812.00000000'], ['0.58080000', '274.00000000'], ['0.58090000', '298.00000000'], ['0.58120000', '258.00000000'], ['0.58200000', '313.00000000'], ['0.58260000', '934.00000000'], ['0.58280000', '562.00000000'], ['0.58300000', '730.00000000'], ['0.58320000', '47.00000000'], ['0.58340000', '389.00000000'], ['0.58380000', '70.00000000'], ['0.58390000', '1371.00000000'], ['0.58410000', '1190.00000000'], ['0.58460000', '870.00000000'], ['0.58470000', '4345.00000000'], ['0.58500000', '1346.00000000'], ['0.58520000', '680.00000000'], ['0.58530000', '403.00000000'], ['0.58540000', '4559.00000000'], ['0.58570000', '19.00000000'], ['0.58600000', '69.00000000'], ['0.58630000', '1316.00000000'], ['0.58710000', '37.00000000'], ['0.58750000', '1205.00000000'], ['0.58770000', '26.00000000'], ['0.58780000', '20.00000000'], ['0.58830000', '17.00000000'], ['0.58890000', '47.00000000'], ['0.58900000', '2484.00000000'], ['0.58960000', '56.00000000'], ['0.58970000', '1110.00000000'], ['0.59000000', '947.00000000'], ['0.59040000', '27.00000000'], ['0.59070000', '84.00000000'], ['0.59090000', '1825.00000000'], ['0.59100000', '1380.00000000'], ['0.59140000', '2976.00000000'], ['0.59170000', '402.00000000'], ['0.59200000', '46.00000000'], ['0.59300000', '44.00000000'], ['0.59310000', '34.00000000'], ['0.59370000', '21.00000000'], ['0.59400000', '1925.00000000'], ['0.59490000',
'46.00000000'], ['0.59500000', '408.00000000'], ['0.59720000', '3573.00000000'], ['0.59750000', '429.00000000'], ['0.59780000', '46.00000000'], ['0.59800000', '22.00000000'], ['0.59830000', '175.00000000'], ['0.59900000', '200.00000000'], ['0.59980000', '344.00000000'], ['0.60000000', '3827.00000000'], ['0.60080000', '46.00000000'], ['0.60120000', '58.00000000'], ['0.60130000', '1277.00000000'], ['0.60200000', '22.00000000'], ['0.60260000', '39.00000000'], ['0.60270000', '39.00000000'], ['0.60290000', '117.00000000'], ['0.60370000', '95.00000000'], ['0.60380000', '45.00000000'], ['0.60400000', '5456.00000000'], ['0.60470000', '33.00000000'], ['0.60540000', '123.00000000'], ['0.60600000', '22.00000000'], ['0.60610000', '189.00000000'], ['0.60680000', '36.00000000'], ['0.60690000', '45.00000000'], ['0.60750000', '49.00000000'], ['0.60780000', '38.00000000'], ['0.60790000', '55.00000000'], ['0.60840000', '217.00000000'], ['0.60930000', '105.00000000'], ['0.60940000', '38.00000000'], ['0.60990000', '71.00000000'], ['0.61000000', '9841.00000000'], ['0.61170000', '4932.00000000'], ['0.61290000', '45.00000000'], ['0.61330000', '562.00000000'], ['0.61350000', '20.00000000'], ['0.61360000', '54.00000000'], ['0.61400000',
'436.00000000'], ['0.61470000', '40.00000000'], ['0.61500000', '5453.00000000'], ['0.61520000', '41.00000000'], ['0.61550000', '17.00000000'], ['0.61590000', '460.00000000'], ['0.61600000', '3759.00000000'], ['0.61630000', '68.00000000'], ['0.61660000', '33.00000000'], ['0.61690000', '17.00000000'], ['0.61740000', '37.00000000'], ['0.61800000', '831.00000000'], ['0.61810000', '129.00000000'], ['0.61890000', '18.00000000']]}

给定:具有出价和要价的数据变量。

'bids': [['0.57860000', '518.00000000'], 

其中 0.57860000 - 价格,518 - 数量

销售请求

'asks': [['0.57860000', '518.00000000'], 

其中 0.57920000 - 价格,728 - 数量

只需要从出价或询价中获取价值

bidOrderPrice_1 = 0.57860000
bidOrderQty_1 = 518.00000000

或者

askOrderPrice_1 = 0.57860000
askOrderQty_1 = 518.00000000

最好按序号接收,例如表示[0],接收到第一个值

bidOrderPrice_1 = 0.57860000
bidOrderQty_1 = 518.00000000

指定[1],得到第二个值

bidOrderPrice_2 = 0.57850000
bidOrderQty_2 = 643.00000000
python
  • 0 个回答
  • 0 Views
Martin Hope
Dimych
Asked: 2022-09-12 03:30:45 +0000 UTC

Python如何用给定的小数位数将带有小数部分的数字四舍五入?

  • 0

有一个变量,其中有一个小数部分

value: '0.00051057'

任务是获取一个小数部分保留 6 个小数位的数字,并将小数部分向下舍入

阅读 math.ceil, ‎math.floor

python
  • 0 个回答
  • 0 Views
Martin Hope
Dimych
Asked: 2022-09-10 22:53:20 +0000 UTC

Python,使用正则表达式中的变量解析值

  • 0

Python 语言,请帮助解析字符串中的值。

有一个数据类型为 <class 'list'> 的变量,其值如下:

tickers = [{'symbol': 'BTCUSDT', 'price': '21337.84000000'}, {'symbol': 'XRPUSDT', 'price': '0.00244900'}, {'symbol': 'ETHUSDT', 'price': '52.40000000'}]

事实上,这条线还有更多的货币对和价格,我缩短了这条线。变量tickers的值每秒更新一次,货币对的值可以改变位置,这就是网站可以给它们的方式,因此,变量的值tickers可能如下所示:

[{'symbol': 'XRPUSDT', 'price': '0.00244900'}, {'symbol': 'ETHUSDT', 'price': '52.40000000'}, {'symbol': 'BTCUSDT', 'price': '21337.84000000'}]

或像这样:

[{'symbol': 'ETHUSDT', 'price': '52.40000000'}, {'symbol': 'BTCUSDT', 'price': '21337.84000000'}, {'symbol': 'XRPUSDT', 'price': '0.00244900'}]

有一个任务是获取某个货币对的价格值,存储在一个变量中

para= "BTCUSDT"

一个for循环中使用para list变量,变量值变化

如何通过用变量 para 中的货币对替换该值来获取 该货币对的json值21337.84000000BTCUSDT

python
  • 0 个回答
  • 0 Views

Sidebar

Stats

  • 问题 10021
  • Answers 30001
  • 最佳答案 8000
  • 用户 6900
  • 常问
  • 回答
  • Marko Smith

    我看不懂措辞

    • 1 个回答
  • Marko Smith

    请求的模块“del”不提供名为“default”的导出

    • 3 个回答
  • Marko Smith

    "!+tab" 在 HTML 的 vs 代码中不起作用

    • 5 个回答
  • Marko Smith

    我正在尝试解决“猜词”的问题。Python

    • 2 个回答
  • Marko Smith

    可以使用哪些命令将当前指针移动到指定的提交而不更改工作目录中的文件?

    • 1 个回答
  • Marko Smith

    Python解析野莓

    • 1 个回答
  • Marko Smith

    问题:“警告:检查最新版本的 pip 时出错。”

    • 2 个回答
  • Marko Smith

    帮助编写一个用值填充变量的循环。解决这个问题

    • 2 个回答
  • Marko Smith

    尽管依赖数组为空,但在渲染上调用了 2 次 useEffect

    • 2 个回答
  • Marko Smith

    数据不通过 Telegram.WebApp.sendData 发送

    • 1 个回答
  • Martin Hope
    Alexandr_TT 2020年新年大赛! 2020-12-20 18:20:21 +0000 UTC
  • Martin Hope
    Alexandr_TT 圣诞树动画 2020-12-23 00:38:08 +0000 UTC
  • Martin Hope
    Air 究竟是什么标识了网站访问者? 2020-11-03 15:49:20 +0000 UTC
  • Martin Hope
    Qwertiy 号码显示 9223372036854775807 2020-07-11 18:16:49 +0000 UTC
  • Martin Hope
    user216109 如何为黑客设下陷阱,或充分击退攻击? 2020-05-10 02:22:52 +0000 UTC
  • Martin Hope
    Qwertiy 并变成3个无穷大 2020-11-06 07:15:57 +0000 UTC
  • Martin Hope
    koks_rs 什么是样板代码? 2020-10-27 15:43:19 +0000 UTC
  • Martin Hope
    Sirop4ik 向 git 提交发布的正确方法是什么? 2020-10-05 00:02:00 +0000 UTC
  • Martin Hope
    faoxis 为什么在这么多示例中函数都称为 foo? 2020-08-15 04:42:49 +0000 UTC
  • Martin Hope
    Pavel Mayorov 如何从事件或回调函数中返回值?或者至少等他们完成。 2020-08-11 16:49:28 +0000 UTC

热门标签

javascript python java php c# c++ html android jquery mysql

Explore

  • 主页
  • 问题
    • 热门问题
    • 最新问题
  • 标签
  • 帮助

Footer

RError.com

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

帮助

© 2023 RError.com All Rights Reserve   沪ICP备12040472号-5