Slide 1

Slide 1 text

No content

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

/** 例:ディレクトリ内のファイル一覧を表わす List 実装 */ public class FileList extends AbstractList { private final File[] files; public FileList(File directory) { this.files = directory.listFiles(); } @Override public File get(int index) { return files[index]; } @Override public int size() { return files.length; } }

Slide 5

Slide 5 text

// 文字列オブジェクト NSString *hello = @"hello"; // 1個の文字列要素を持つ配列オブジェクトを作る NSArray *array = [NSArray arrayWithObject:hello]; // 最初の要素(@"hello")を取得 // 戻り値が id 型(任意のオブジェクト)のため、型チェックをすり抜けて代入できてしまう NSURL *url = [array firstObject]; // そのまま後続のコードを書ける(実行時にエラー) NSURLRequest *req = [NSURLRequest requestWithURL:url];

Slide 6

Slide 6 text

pandas # pandas でのピボットテーブルを作るコード例 dataFrame = pd.read_csv('data.csv') dataFrame.pivot_table(values='count', index='area', columns='month')

Slide 7

Slide 7 text

area,month,count 東京,1月,100 東京,2月,120 東京,3月,90 大阪,1月,80 大阪,2月,90 大阪,3月,70 month 1月 2月 3月 area 大阪 80 90 70 東京 100 120 90

Slide 8

Slide 8 text

let hello = "hello" // String型 let array = [hello] // [String]型 let url = array.first // String?型 (Optional) let req = URLRequest(url: url) // URL 型が必要なのでコンパイルエラー

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

const hello = "hello"; // string型 const array = [hello]; // string[]型 const url = array.at(0); // string | undefined型 const req = new Request(url); // string 型が必要なのでコンパイルエラー let hello = "hello" // String型 let array = [hello] // [String]型 let url = array.first // String?型 (Optional) let req = URLRequest(url: url) // URL 型が必要なのでコンパイルエラー

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

No content