20. HELLOWORLDHELLOWORLD
public class HelloWorld{
public static void main(String[] arg){
System.out.println("HelloWorld");
}
}
Introduction of Programming Language file:///mnt/A2C043EDC043C66F/Users/owner/Dropbox/digi-poro/out...
20 / 70 2015年10月17日 15:28
29. HELLOWORLDHELLOWORLD
class Hello{
public static function main($args = array()){
printf("HelloWorld");
}
}
Hello::main() ;
Introduction of Programming Language file:///mnt/A2C043EDC043C66F/Users/owner/Dropbox/digi-poro/out...
29 / 70 2015年10月17日 15:28
31. PYTHONの特徴PYTHONの特徴
オブジェクト指向言語
There's only one way to do it.
インデントでブロックを記述
自然とキレイに書ける
読みやすい
入門向け
GUIツールキットも充実
意外と何でも出来る
動作速度は・・・
Introduction of Programming Language file:///mnt/A2C043EDC043C66F/Users/owner/Dropbox/digi-poro/out...
31 / 70 2015年10月17日 15:28
59. 変数=変数という書き方もOK
x = 1
y = x
xの値は1
yの値は代入時のxの値=1
xの値もyの値も1
このあと、xの値を変更してもyの値は変化なし
Introduction of Programming Language file:///mnt/A2C043EDC043C66F/Users/owner/Dropbox/digi-poro/out...
59 / 70 2015年10月17日 15:28
64. LET'S DO IT!LET'S DO IT!
Introduction of Programming Language file:///mnt/A2C043EDC043C66F/Users/owner/Dropbox/digi-poro/out...
64 / 70 2015年10月17日 15:28
67. FIZZBUZZ問題FIZZBUZZ問題
for i in range(1,40):
if i%15==0:
print "FizzBuzz ",
elif i%3==0:
print "Fizz ",
elif i%5==0:
print "Buzz ",
else:
print i, " ",
Introduction of Programming Language file:///mnt/A2C043EDC043C66F/Users/owner/Dropbox/digi-poro/out...
67 / 70 2015年10月17日 15:28
68. 世界のナベアツ問題世界のナベアツ問題
for i in range(1,40):
if i%3==0 or (30<i and i<40):
print "Aho ",
else:
print i, " ",
Introduction of Programming Language file:///mnt/A2C043EDC043C66F/Users/owner/Dropbox/digi-poro/out...
68 / 70 2015年10月17日 15:28
69. THANK YOU!THANK YOU!
Introduction of Programming Language file:///mnt/A2C043EDC043C66F/Users/owner/Dropbox/digi-poro/out...
69 / 70 2015年10月17日 15:28
70. Introduction of Programming Language file:///mnt/A2C043EDC043C66F/Users/owner/Dropbox/digi-poro/out...
70 / 70 2015年10月17日 15:28