Skip to content

Instantly share code, notes, and snippets.

View serinuntius's full-sized avatar
🏠
Working from home

serinuntius serinuntius

🏠
Working from home
View GitHub Profile
class Person
#どんなPersonがいるかをリストに入れる
#@@はクラス変数といい、クラスで共有される変数
@@person = []
def initialize(math,english)
@math = math
@english = english
#インスタンスが生成されたときにこのメソッドが呼ばれるので
#リストに入れておく。selfというのは、インスタンス自身のこと
class Person
def initialize(math,english)
@math = math
@english = english
end
#外からアクセスできるように(これをしないと、taro.mathとかで呼び出せない)
attr_accessor :math, :english
end
class Person
def initialize(math,english)
#インスタンス変数に代入
@math = math
@english = english
end
#外からアクセスできるように(これをしないと、taro.mathとかで呼び出せない)
attr_accessor :math, :english
# 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
# 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 ->