This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Person | |
#どんなPersonがいるかをリストに入れる | |
#@@はクラス変数といい、クラスで共有される変数 | |
@@person = [] | |
def initialize(math,english) | |
@math = math | |
@english = english | |
#インスタンスが生成されたときにこのメソッドが呼ばれるので | |
#リストに入れておく。selfというのは、インスタンス自身のこと |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Person | |
def initialize(math,english) | |
@math = math | |
@english = english | |
end | |
#外からアクセスできるように(これをしないと、taro.mathとかで呼び出せない) | |
attr_accessor :math, :english | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Person | |
def initialize(math,english) | |
#インスタンス変数に代入 | |
@math = math | |
@english = english | |
end | |
#外からアクセスできるように(これをしないと、taro.mathとかで呼び出せない) | |
attr_accessor :math, :english |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding:utf-8 | |
import csv | |
from sqlalchemy import create_engine, MetaData, Table, Column, Integer, String | |
from collections import OrderedDict | |
class myTable: | |
def __init__(self): | |
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
NewerOlder