我已经开始在Codecademy使用Python编程。到目前为止,我认为我已经学到了一些基本的编程技能,我真的想尝试一些更难的东西。
在我一直在工作的一个项目中,我不断收到这个错误,我的代码看起来像这样:
print "Welcome to the English to Pig Latin translator!"
original = raw_input("What's your name?")
def function():
if len(original) > 0:
print original
else:
public class Parameter {
public static int my_static_int;
}
public class Test {
public void foo (Class<Parameter> argument) {
argument.my_static_int = 1;
}
当我输入这段代码时,当我试图在函数foo中访问my_static_int时,Eclipse给我一个错误,显示为my_static_int cannot be
这就是我想要做的:
SELECT iif(d.ItemType = 'INVOICE', 0, iif(d.ItemType = 'PACKING', 0, 1)) AS MissingDocuments FROM dbo.DocumentDetails AS D
不幸的是,我意识到这与MSSQL2008不兼容。所以我试着写了一个IF ELSE,但这同样不起作用。
SELECT IF d.ItemType = 'INVOICE'
0
ELSE
BEGIN
d.ItemType = 'PACKING'