变量 问答列表

使用 PHP 的 “Notice: Undefined variable”, “Notice: Undefined index”, “Warning: Undefined array key” 和 “Notice: Undefined offset”

作者: 提问时间:11/24/2010

我正在运行PHP脚本,并继续收到以下错误: 注意:未定义的变量:my_variable_name在第 10 行的 C:\wamp\www\mypath\index.php 注意:未定义索引:my_...

使用 PHP 的 “Notice: Undefined variable”, “Notice: Undefined index”, “Warning: Undefined array key” 和 “Notice: Undefined offset”

作者: 提问时间:11/24/2010

我正在运行PHP脚本,并继续收到以下错误: 注意:未定义的变量:my_variable_name在第 10 行的 C:\wamp\www\mypath\index.php 注意:未定义索引:my_...

使用 PHP 的 “Notice: Undefined variable”, “Notice: Undefined index”, “Warning: Undefined array key” 和 “Notice: Undefined offset”

作者: 提问时间:11/24/2010

我正在运行PHP脚本,并继续收到以下错误: 注意:未定义的变量:my_variable_name在第 10 行的 C:\wamp\www\mypath\index.php 注意:未定义索引:my_...

“注意:未定义的变量”、“注意:未定义的索引”、“警告:未定义的数组键”和“注意:未定义的偏移量”使用 PHP

作者: 提问时间:11/24/2010

我正在运行PHP脚本,但继续收到以下错误: 注意:未定义的变量:第 10 行 C:\wamp\www\mypath\index.php 中的my_variable_name 注意:未定义的索引:第...

“注意:未定义的变量”、“注意:未定义的索引”、“警告:未定义的数组键”和“注意:未定义的偏移量”使用 PHP

作者: 提问时间:11/24/2010

我正在运行PHP脚本,但继续收到以下错误: 注意:未定义的变量:第 10 行 C:\wamp\www\mypath\index.php 中的my_variable_name 注意:未定义的索引:第...

PowerShell 在命令中使用引号中的变量

作者:Rakha 提问时间:12/15/2017

我有这个有效的(三重双引号不是一个错误;它的工作原理完全是这样的)——专注于部分:Start-Process Start-Process powershell -Credential $cred -...

VS Code 终端找不到 AWS SAM,即使 Windows 终端可以找到

作者:Dhruv 提问时间:7/16/2021

我从适用于 Windows 的 AWS 的 msi 安装程序安装了 AWS SAM。 运行安装程序后,我在 cmd 和 powershell 中运行。sam --version PS C:\User...

如何按(字符串)名称选择变量?

作者:Ludoloco 提问时间:11/26/2017

我想根据字符串输入从我的函数返回一个预先确定的列表。 def get_ext(file_type): text = ['txt', 'doc'] audio = ['mp3', 'wav'] ...

在 python 类中,有没有很酷的方法来表达“if x is None: x = self.x”?

作者:Jongbin Won 提问时间:11/6/2023

我只是在研究python OOP,真的很困惑什么时候使用,什么时候不使用。self 特别是当我想制作一个默认获取对象实例输入的方法,并且还想让它作为可以获取自定义参数输入的普通方法工作时, 我为该方...

在 Rust 中从不同的模块填充静态数组?

作者:glasflügel 提问时间:7/17/2021

在我的 Rust 项目中,我需要一个全局保持、静态数组或 vec,它初始化一次,模块可以在其中注册值或函数。我以为,使用 lazy_static!-crate 是可能的,但似乎并非如此。 这就是我想...


共1008条 当前第9页