사유(思惟) - 시간(時間)

시간은 우리가 가지고 있는 고유한 재산입니다. 이러한 시간은 우리 각자가 가지고 있는 유일한 재산이며, 그것을 어떻게 사용할 것인지 결정할 수 있는 것은 오로지 우리 자신뿐입니다. 결코 다른 사람이 당신의 시간을 대신 사용하게 하지 않도록 조심하십시오. - 칼 샌드버그 (Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you. - Carl Sandburg) 다른 사람과의 약속시간을 잡았다고 가정합시다. 우리는 보통 그 사람이 약속시간보다 늦은 시간에 나온다면 화를내기 마련입니다. 그러나 이렇게 생각을 한번 해보십시오. 다른 사람과의 약속시간은 이미 정해져 있는 것이고, 늦게 온 상대방이 당신과 같이 있을 시간에 대해서 손해를 보고 있는 것이라고... 약속시간 이전까지가 기다림의 시간이고, 약속시간부터는 당신과의 시간입니다. - 작성자 : 이영준 - "전부 다는 아니겠지만, 제 사고에서 정치적 편안함을 느끼시는 분들과 함께하고 싶을 뿐입니다."

사유(思惟) - 세상(世上)

자신의 삶에 깃들여진 생각과 큰 틀 안에서의 자유 그리고, 필요하다면 거절 당할 용기와 함께 초인종을 눌러주십시오. - 작성자 : 이영준 - "전부 다는 아니겠지만, 제 사고에서 정치적 편안함을 느끼시는 분들과 함께하고 싶을 뿐입니다."

파이썬[Python]: kivy - QueryDict클래스

이미지
kivy.utils 모듈 - QueryDict 클래스(class) /// 설명 .(dot)으로 딕셔너리를 생성(혹은 query)할 수 있습니다. 참고: utils to wealkproxy 모듈 목록 ※ 형식 QueryDict() reference https://kivy.org/doc/stable/api-kivy.utils.html /// 예제 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 import  kivy   kivy.require( '2.1.0' )   from  kivy.app  import  App from  kivy.core.window  import  Window from  kivy.uix.boxlayout  import  BoxLayout from  kivy.uix.button  import  Button from  kivy.uix.label  import  Label from  kivy.utils  import  QueryDict   Window.clearcolor  =  ( 1 ,  1 ,  1 ,  1 ) Window.size  =  ( 563 ,  1001 ) Window.top, Window.left  =   30 ,  2900     class  FantasticApp(App):      def  _bt_release( self , bt_inst):         test_dict  =  QueryDict()         test_dict.a  =   1          self .lb.text  =  f "key: a, value: {test_dict.a}"        def  build( self ):         bl  =  BoxLayout(orientation = "vertical" )            self

파이썬[Python]: 내장함수 - __setattr__ 메서드

파이썬(Phthon): 내장함수 - __setattr__ 메서드(method) /// 설명 클래스의 속성(attribute)에 값을 할당하고자 할 경우 호출 됩니다. ※ 형식 object.__setattr__(self, name, value) reference https://docs.python.org/3/reference/datamodel.html#object.__setattr__ /// 예제 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 class  A:      def  __init__( self , a):          self .a  =  a        def  __setattr__( self , attr, value):         value  =  f 'attribute: {attr}, value: {value}'          super ().__setattr__(attr, value)          # object.__setattr__(self, attr, value)     a  =  A( 'String' ) print (a.a)   # attribute: a, value: String a.a  =   'a' print (a.a)   # attribute: a, value: a   # create new attribute a.b  =   'b' print (a.b)   # attribute: b, value: b   # create new attribute setattr(a,  'c' ,  'c' ) print (a.c)   # attribute: b, value: b   # create new attribute a.__dict__[ 'd' ]  =   'd' print (a.d)   # d print (a._

파이썬[Python]: datetime - utcoffset 메서드

datetime 모듈 - datetime 클래스 - utcoffset 메서드(method) /// 설명 UTC 시간과 현지시간(타임존)의 차이를 나타냅니다. ※ 형식 datetime.utcoffset() reference https://docs.python.org/3/library/datetime.html#module-datetime /// 예제 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 import  datetime   year  =  datetime.datetime.now().year month  =  datetime.datetime.now().month day  =  datetime.datetime.now().day hour  =  datetime.datetime.now().hour minute  =  datetime.datetime.now().minute second  =  datetime.datetime.now().second microsecond  =  datetime.datetime.now().microsecond   test_dt  =  datetime.datetime(year = year, month = month, day = day, hour = hour, minute = minute,                             second = second, microsecond = microsecond, tzinfo = None , fold = 0 )   print (test_dt.utcoffset())   # None   test_timezone  =  datetime.timezone(datetime.timedelta(hours = 9 ),  'KST' ) test_dt  =  datetime.datetime(year = year, month = month, day = day, hour = hour, minute = minute,