Upgrade to Pro — share decks privately, control downloads, hide ads and more …

新人教育とPython / PyCon mini Hiroshima 2015

7pairs
November 22, 2015

新人教育とPython / PyCon mini Hiroshima 2015

7pairs

November 22, 2015
Tweet

More Decks by 7pairs

Other Decks in Programming

Transcript

  1. ࣗݾ঺հ • ௕୩৔ ५໵ʢ͸ͤ͹ ͡ΎΜ΍ʣ • Twitterɿ@7pairs • GitHubɿhttps://github.com/7pairs •

    גࣜձࣾΞΠϞόΠϧॴଐ • ΞυωοτϫʔΫ୲౰ͷΤϯδχΞ • C#ɺJavaScript…ͳͲ • લ৬·Ͱ15೥ؒSIerʹۈ຿ • ࠓ೔ͷൃද͸ͦͷࠒͷ͓࿩
  2. Java൛Hello Worldͷ͓·͡ͳ͍ (1) // Ϋϥε public class HelloWorld { public

    static void main(String[] args) { System.out.println("hello, world"); } }
  3. Java൛Hello Worldͷ͓·͡ͳ͍ (2) // ϝιου public class HelloWorld { public

    static void main(String[] args) { System.out.println("hello, world"); } }
  4. Java൛Hello Worldͷ͓·͡ͳ͍ (3) // ΞΫηεम০ࢠ public class HelloWorld { public

    static void main(String[] args) { System.out.println("hello, world"); } }
  5. Java൛Hello Worldͷ͓·͡ͳ͍ (4) // ੩తʢϝιουʣ public class HelloWorld { public

    static void main(String[] args) { System.out.println("hello, world"); } }
  6. Java൛Hello Worldͷ͓·͡ͳ͍ (5) // ໭Γ஋ public class HelloWorld { public

    static void main(String[] args) { System.out.println("hello, world"); } }
  7. Java൛Hello Worldͷ͓·͡ͳ͍ (6) // Ҿ਺ public class HelloWorld { public

    static void main(String[] args) { System.out.println("hello, world"); } }
  8. Java൛Hello Worldͷ͓·͡ͳ͍ (7) // ഑ྻʢ΋͘͠͸Մม௕Ҿ਺ʣ public class HelloWorld { public

    static void main(String[] args) { System.out.println("hello, world"); } }
  9. Java൛Hello Worldͷ͓·͡ͳ͍ (8) // ύοέʔδ public class HelloWorld { public

    static void main(String[] args) { System.out.println("ΤϦνΧɺ͓͏ͪʹؼΔʂ"); } }
  10. ੲͳ͕Βͷforจʹށ࿭ͬͯ͠·͏ for (String str : strArray) { // Pythonͷfor͔ΒͷྨਪͰཧղͰ͖Δ }

    for (int i = 0; i < strArray.length; i++) { // Կ͜Εʁɹݟͨ͜ͱ͕ͳ͍ʂ }