---
# System prepended metadata

title: 程式碼

---

# 程式碼

```java=1
程式設計(一)：Java程式設計
    
public class Hello {
    public static int gvar;
    public static void say(String s) {
        int x = 10;
        System.out.print(s + x);
    }
}

public static void main(String[] argv) {
    float y = 0;
    say("Hello, world\n");
    }
}
```

``` python=1
程式設計(二)：Python程式設計

iv = 10
fv = 12.3
cv = 3 + 5j
sv = 'hello python'
bv = True
nv = None

print(iv, fv, cv, sv, bv)
print(type(iv))
print(type(fv))
print(type(cv))
print(type(sv))
print(type(bv))
print(nv)
print(isinstance(sv, str))
```