可以说,变量中的数据在程序中是可更改的,另一方面,在数据结构中,例如字符串是不可变的。因此,这是变量和数据结构之间的矛盾。谁能帮助我解决这个问题?
答案 0 :(得分:1)
server {
listen 8002 default_server;
listen [::]:8002 default_server ipv6only=on;
server_name localhost;
root /Users/phann123/Documents/projects/we-ac-blog;
index index.php index.html index.htm;
client_max_body_size 20M;
location ~ ^/(node|socket\.io) {
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location ~ ^/(su-panel|su-admin) {
root /Users/phann123/Documents/projects/web-acc/public/;
index index.php;
try_files $uri $uri/ /index.php?$query_string =404;
location ~ \.php$ {
try_files $uri /index.php =404;
fastcgi_pass 127.0.0.1:9001;
fastcgi_index index.php;
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
include fastcgi_params;
}
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Credentials' 'true';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type';
}
location ~ \.php$ {
try_files $uri /index.php =403;
fastcgi_pass 127.0.0.1:9001;
fastcgi_index index.php;
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
include fastcgi_params;
}
location ~ /\.ht {
deny all;
}
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location /.well-known/acme-challenge/ {
root /var/www/letsencrypt/;
log_not_found off;
}
}
糟糕!发生什么事了?
答案 1 :(得分:0)
没有矛盾。变量不是值。说一个对象是可变的意味着它公开了可变器方法。变量可以重新分配时是可变的。