From 072ada17e0b81ca23e9ef0d452ee6df462c9891c Mon Sep 17 00:00:00 2001 From: thinkPad_win Date: 2024年9月21日 11:53:39 +0800 Subject: [PATCH] all- uml dot --- call.bat | 39 ++++ ...5274円217円-345円205円203円347円261円273円.py.dot" | 7 + ...45231円250円347円211円210円346円234円254円.py.dot" | 6 + ...45205円203円346円250円241円345円274円217円.py.dot" | 6 + ...5274円217円-345円205円203円347円261円273円.py.dot" | 7 + ...50243円205円351円245円260円345円231円250円.py.dot" | 6 + ...41214円init346円226円271円345円274円217円.py.dot" | 6 + ...44276円213円346円250円241円345円274円217円.py.dot" | 6 + ...45236円213円346円250円241円345円274円217円.py.dot" | 7 + ...46261円240円346円250円241円345円274円217円.py.dot" | 6 + ...50200円205円346円250円241円345円274円217円.py.dot" | 16 ++ ...45216円202円346円250円241円345円274円217円.py.dot" | 12 ++ ...45216円202円346円250円241円345円274円217円.py.dot" | 7 + ...74217円-mvc346円250円241円345円274円217円.py.dot" | 10 + ...47220円206円346円250円241円345円274円217円.py.dot" | 8 + ...50247円202円346円250円241円345円274円217円.py.dot" | 12 ++ ...46216円245円346円250円241円345円274円217円.py.dot" | 9 + ...45220円210円346円250円241円345円274円217円.py.dot" | 12 ++ ...50243円205円351円245円260円345円231円250円.py.dot" | 5 + ...50243円205円351円245円260円345円231円250円.py.dot" | 7 + ...50200円205円346円250円241円345円274円217円.py.dot" | 7 + ...45231円250円346円250円241円345円274円217円.py.dot" | 9 + ...50200円205円346円250円241円345円274円217円.py.dot" | 7 + ...51230円205円346円250円241円345円274円217円.py.dot" | 8 + ...44273円244円346円250円241円345円274円217円.py.dot" | 8 + ...45275円225円346円250円241円345円274円217円.py.dot" | 8 + ...45255円230円346円250円241円345円274円217円.py.dot" | 8 + ...46235円277円346円250円241円345円274円217円.py.dot" | 8 + ...46200円201円346円250円241円345円274円217円.py.dot" | 14 ++ ...50256円260円346円250円241円345円274円217円.py.dot" | 9 + ...47225円245円346円250円241円345円274円217円.py.dot" | 11 ++ ...45277円227円347円263円273円347円273円237円.py.dot" | 15 ++ ...45231円250円346円250円241円345円274円217円.py.dot" | 9 + ...50200円205円346円250円241円345円274円217円.py.dot" | 12 ++ ...51223円276円346円250円241円345円274円217円.py.dot" | 13 ++ ...45231円250円346円250円241円345円274円217円.py.dot" | 21 ++ ...44275円277円347円224円250円347円261円273円.py.dot" | 6 + ...45231円250円346円250円241円345円274円217円.py.dot" | 11 ++ ...5231円250円346円250円241円345円274円2173円.py.dot" | 5 + ...5274円217円-345円205円203円347円261円273円.py.dot" | 7 + ...45231円250円347円211円210円346円234円254円.py.dot" | 6 + ...45205円203円346円250円241円345円274円217円.py.dot" | 6 + ...5274円217円-345円205円203円347円261円273円.py.dot" | 7 + ...50243円205円351円245円260円345円231円250円.py.dot" | 6 + ...41214円init346円226円271円345円274円217円.py.dot" | 6 + ...44276円213円346円250円241円345円274円217円.py.dot" | 6 + ...45236円213円346円250円241円345円274円217円.py.dot" | 7 + ...46261円240円346円250円241円345円274円217円.py.dot" | 6 + ...50200円205円346円250円241円345円274円217円.py.dot" | 16 ++ ...45216円202円346円250円241円345円274円217円.py.dot" | 12 ++ ...45216円202円346円250円241円345円274円217円.py.dot" | 7 + ...74217円-mvc346円250円241円345円274円217円.py.dot" | 10 + ...47220円206円346円250円241円345円274円217円.py.dot" | 8 + ...50247円202円346円250円241円345円274円217円.py.dot" | 12 ++ ...46216円245円346円250円241円345円274円217円.py.dot" | 9 + ...45220円210円346円250円241円345円274円217円.py.dot" | 12 ++ ...50243円205円351円245円260円345円231円250円.py.dot" | 5 + ...50243円205円351円245円260円345円231円250円.py.dot" | 7 + ...50200円205円346円250円241円345円274円217円.py.dot" | 7 + ...45231円250円346円250円241円345円274円217円.py.dot" | 9 + ...50200円205円346円250円241円345円274円217円.py.dot" | 7 + ...51230円205円346円250円241円345円274円217円.py.dot" | 8 + ...44273円244円346円250円241円345円274円217円.py.dot" | 8 + ...45275円225円346円250円241円345円274円217円.py.dot" | 8 + ...45255円230円346円250円241円345円274円217円.py.dot" | 8 + ...46235円277円346円250円241円345円274円217円.py.dot" | 8 + ...46200円201円346円250円241円345円274円217円.py.dot" | 14 ++ ...50256円260円346円250円241円345円274円217円.py.dot" | 9 + ...47225円245円346円250円241円345円274円217円.py.dot" | 11 ++ ...45277円227円347円263円273円347円273円237円.py.dot" | 15 ++ ...45231円250円346円250円241円345円274円217円.py.dot" | 9 + ...50200円205円346円250円241円345円274円217円.py.dot" | 12 ++ ...51223円276円346円250円241円345円274円217円.py.dot" | 13 ++ ...45231円250円346円250円241円345円274円217円.py.dot" | 21 ++ ...44275円277円347円224円250円347円261円273円.py.dot" | 6 + ...45231円250円346円250円241円345円274円217円.py.dot" | 11 ++ ...5231円250円346円250円241円345円274円2173円.py.dot" | 5 + ...1345円274円217円-345円205円203円347円261円273円.py" | 40 ++++ ...60345円231円250円347円211円210円346円234円254円.py" | 63 ++++++ ...53345円205円203円346円250円241円345円274円217円.py" | 97 ++++++++++ ...1345円274円217円-345円205円203円347円261円273円.py" | 57 ++++++ ...7-350円243円205円351円245円260円345円231円250円.py" | 63 ++++++ ...50241円214円init346円226円271円345円274円217円.py" | 60 ++++++ ...25344円276円213円346円250円241円345円274円217円.py" | 58 ++++++ ...37345円236円213円346円250円241円345円274円217円.py" | 92 +++++++++ ...41346円261円240円346円250円241円345円274円217円.py" | 56 ++++++ ...40350円200円205円346円250円241円345円274円217円.py" | 121 ++++++++++++ ...45345円216円202円346円250円241円345円274円217円.py" | 84 ++++++++ ...45345円216円202円346円250円241円345円274円217円.py" | 50 +++++ ...45274円217円-mvc346円250円241円345円274円217円.py" | 67 +++++++ ...43347円220円206円346円250円241円345円274円217円.py" | 66 +++++++ ...26350円247円202円346円250円241円345円274円217円.py" | 54 ++++++ ...45346円216円245円346円250円241円345円274円217円.py" | 49 +++++ ...04345円220円210円346円250円241円345円274円217円.py" | 135 +++++++++++++ ...60350円243円205円351円245円260円345円231円250円.py" | 35 ++++ ...73350円243円205円351円245円260円345円231円250円.py" | 47 +++++ ...60350円200円205円346円250円241円345円274円217円.py" | 43 +++++ ...15345円231円250円346円250円241円345円274円217円.py" | 73 +++++++ ...13350円200円205円346円250円241円345円274円217円.py" | 30 +++ ...42351円230円205円346円250円241円345円274円217円.py" | 80 ++++++++ ...75344円273円244円346円250円241円345円274円217円.py" | 90 +++++++++ ...30345円275円225円346円250円241円345円274円217円.py" | 81 ++++++++ ...23345円255円230円346円250円241円345円274円217円.py" | 95 ++++++++++ ...41346円235円277円346円250円241円345円274円217円.py" | 75 ++++++++ ...66346円200円201円346円250円241円345円274円217円.py" | 82 ++++++++ ...73350円256円260円346円250円241円345円274円217円.py" | 41 ++++ ...26347円225円245円346円250円241円345円274円217円.py" | 50 +++++ ...45345円277円227円347円263円273円347円273円237円.py" | 76 ++++++++ ...12345円231円250円346円250円241円345円274円217円.py" | 65 +++++++ ...56350円200円205円346円250円241円345円274円217円.py" | 179 ++++++++++++++++++ ...73351円223円276円346円250円241円345円274円217円.py" | 73 +++++++ ...44345円231円250円346円250円241円345円274円217円.py" | 92 +++++++++ ...7-344円275円277円347円224円250円347円261円273円.py" | 26 +++ ...43345円231円250円346円250円241円345円274円217円.py" | 78 ++++++++ ...3345円231円250円346円250円241円345円274円2173円.py" | 26 +++ 115 files changed, 3376 insertions(+) create mode 100644 call.bat create mode 100644 "classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-344円272円253円345円205円203円346円250円241円345円274円217円-345円205円203円347円261円273円.py.dot" create mode 100644 "classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-344円272円253円345円205円203円346円250円241円345円274円217円-350円243円205円351円245円260円345円231円250円347円211円210円346円234円254円.py.dot" create mode 100644 "classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-344円272円253円345円205円203円346円250円241円345円274円217円.py.dot" create mode 100644 "classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円-345円205円203円347円261円273円.py.dot" create mode 100644 "classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円-350円243円205円351円245円260円345円231円250円.py.dot" create mode 100644 "classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円-351円207円215円345円206円231円new344円275円206円344円270円215円346円257円217円346円254円241円346円211円247円350円241円214円init346円226円271円345円274円217円.py.dot" create mode 100644 "classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円.py.dot" create mode 100644 "classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円216円237円345円236円213円346円250円241円345円274円217円.py.dot" create mode 100644 "classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円257円271円350円261円241円346円261円240円346円250円241円345円274円217円.py.dot" create mode 100644 "classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円273円272円351円200円240円350円200円205円346円250円241円345円274円217円.py.dot" create mode 100644 "classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-346円212円275円350円261円241円345円267円245円345円216円202円346円250円241円345円274円217円.py.dot" create mode 100644 "classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-347円256円200円345円215円225円345円267円245円345円216円202円346円250円241円345円274円217円.py.dot" create mode 100644 "classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-mvc346円250円241円345円274円217円.py.dot" create mode 100644 "classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-344円273円243円347円220円206円346円250円241円345円274円217円.py.dot" create mode 100644 "classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-345円244円226円350円247円202円346円250円241円345円274円217円.py.dot" create mode 100644 "classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-346円241円245円346円216円245円346円250円241円345円274円217円.py.dot" create mode 100644 "classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-347円273円204円345円220円210円346円250円241円345円274円217円.py.dot" create mode 100644 "classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-350円243円205円351円245円260円350円200円205円346円250円241円345円274円217円-345円207円275円346円225円260円350円243円205円351円245円260円345円231円250円.py.dot" create mode 100644 "classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-350円243円205円351円245円260円350円200円205円346円250円241円345円274円217円-347円261円273円350円243円205円351円245円260円345円231円250円.py.dot" create mode 100644 "classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-350円243円205円351円245円260円350円200円205円346円250円241円345円274円217円.py.dot" create mode 100644 "classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-351円200円202円351円205円215円345円231円250円346円250円241円345円274円217円.py.dot" create mode 100644 "classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-344円270円255円344円273円213円350円200円205円346円250円241円345円274円217円.py.dot" create mode 100644 "classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円217円221円345円270円203円350円256円242円351円230円205円346円250円241円345円274円217円.py.dot" create mode 100644 "classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円221円275円344円273円244円346円250円241円345円274円217円.py.dot" create mode 100644 "classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円244円207円345円277円230円345円275円225円346円250円241円345円274円217円.py.dot" create mode 100644 "classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円273円266円350円277円237円350円256円241円347円256円227円347円274円223円345円255円230円346円250円241円345円274円217円.py.dot" create mode 100644 "classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-346円250円241円346円235円277円346円250円241円345円274円217円.py.dot" create mode 100644 "classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-347円212円266円346円200円201円346円250円241円345円274円217円.py.dot" create mode 100644 "classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-347円231円273円350円256円260円346円250円241円345円274円217円.py.dot" create mode 100644 "classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-347円255円226円347円225円245円346円250円241円345円274円217円.py.dot" create mode 100644 "classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円247円202円345円257円237円350円200円205円346円250円241円345円274円217円-351円207円215円346円226円260円345円256円236円347円216円260円346円227円245円345円277円227円347円263円273円347円273円237円.py.dot" create mode 100644 "classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円247円243円351円207円212円345円231円250円346円250円241円345円274円217円.py.dot" create mode 100644 "classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円256円277円351円227円256円350円200円205円346円250円241円345円274円217円.py.dot" create mode 100644 "classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円264円243円344円273円273円351円223円276円346円250円241円345円274円217円.py.dot" create mode 100644 "classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円207円346円273円244円345円231円250円346円250円241円345円274円217円.py.dot" create mode 100644 "classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円255円344円273円243円345円231円250円346円250円241円345円274円217円-344円275円277円347円224円250円347円261円273円.py.dot" create mode 100644 "classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円255円344円273円243円345円231円250円346円250円241円345円274円217円.py.dot" create mode 100644 "classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円255円344円273円243円345円231円250円346円250円241円345円274円2173円.py.dot" create mode 100644 "dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-344円272円253円345円205円203円346円250円241円345円274円217円-345円205円203円347円261円273円.py.dot" create mode 100644 "dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-344円272円253円345円205円203円346円250円241円345円274円217円-350円243円205円351円245円260円345円231円250円347円211円210円346円234円254円.py.dot" create mode 100644 "dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-344円272円253円345円205円203円346円250円241円345円274円217円.py.dot" create mode 100644 "dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円-345円205円203円347円261円273円.py.dot" create mode 100644 "dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円-350円243円205円351円245円260円345円231円250円.py.dot" create mode 100644 "dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円-351円207円215円345円206円231円new344円275円206円344円270円215円346円257円217円346円254円241円346円211円247円350円241円214円init346円226円271円345円274円217円.py.dot" create mode 100644 "dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円.py.dot" create mode 100644 "dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円216円237円345円236円213円346円250円241円345円274円217円.py.dot" create mode 100644 "dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円257円271円350円261円241円346円261円240円346円250円241円345円274円217円.py.dot" create mode 100644 "dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円273円272円351円200円240円350円200円205円346円250円241円345円274円217円.py.dot" create mode 100644 "dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-346円212円275円350円261円241円345円267円245円345円216円202円346円250円241円345円274円217円.py.dot" create mode 100644 "dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-347円256円200円345円215円225円345円267円245円345円216円202円346円250円241円345円274円217円.py.dot" create mode 100644 "dot/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-mvc346円250円241円345円274円217円.py.dot" create mode 100644 "dot/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-344円273円243円347円220円206円346円250円241円345円274円217円.py.dot" create mode 100644 "dot/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-345円244円226円350円247円202円346円250円241円345円274円217円.py.dot" create mode 100644 "dot/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-346円241円245円346円216円245円346円250円241円345円274円217円.py.dot" create mode 100644 "dot/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-347円273円204円345円220円210円346円250円241円345円274円217円.py.dot" create mode 100644 "dot/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-350円243円205円351円245円260円350円200円205円346円250円241円345円274円217円-345円207円275円346円225円260円350円243円205円351円245円260円345円231円250円.py.dot" create mode 100644 "dot/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-350円243円205円351円245円260円350円200円205円346円250円241円345円274円217円-347円261円273円350円243円205円351円245円260円345円231円250円.py.dot" create mode 100644 "dot/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-350円243円205円351円245円260円350円200円205円346円250円241円345円274円217円.py.dot" create mode 100644 "dot/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-351円200円202円351円205円215円345円231円250円346円250円241円345円274円217円.py.dot" create mode 100644 "dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-344円270円255円344円273円213円350円200円205円346円250円241円345円274円217円.py.dot" create mode 100644 "dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円217円221円345円270円203円350円256円242円351円230円205円346円250円241円345円274円217円.py.dot" create mode 100644 "dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円221円275円344円273円244円346円250円241円345円274円217円.py.dot" create mode 100644 "dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円244円207円345円277円230円345円275円225円346円250円241円345円274円217円.py.dot" create mode 100644 "dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円273円266円350円277円237円350円256円241円347円256円227円347円274円223円345円255円230円346円250円241円345円274円217円.py.dot" create mode 100644 "dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-346円250円241円346円235円277円346円250円241円345円274円217円.py.dot" create mode 100644 "dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-347円212円266円346円200円201円346円250円241円345円274円217円.py.dot" create mode 100644 "dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-347円231円273円350円256円260円346円250円241円345円274円217円.py.dot" create mode 100644 "dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-347円255円226円347円225円245円346円250円241円345円274円217円.py.dot" create mode 100644 "dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円247円202円345円257円237円350円200円205円346円250円241円345円274円217円-351円207円215円346円226円260円345円256円236円347円216円260円346円227円245円345円277円227円347円263円273円347円273円237円.py.dot" create mode 100644 "dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円247円243円351円207円212円345円231円250円346円250円241円345円274円217円.py.dot" create mode 100644 "dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円256円277円351円227円256円350円200円205円346円250円241円345円274円217円.py.dot" create mode 100644 "dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円264円243円344円273円273円351円223円276円346円250円241円345円274円217円.py.dot" create mode 100644 "dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円207円346円273円244円345円231円250円346円250円241円345円274円217円.py.dot" create mode 100644 "dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円255円344円273円243円345円231円250円346円250円241円345円274円217円-344円275円277円347円224円250円347円261円273円.py.dot" create mode 100644 "dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円255円344円273円243円345円231円250円346円250円241円345円274円217円.py.dot" create mode 100644 "dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円255円344円273円243円345円231円250円346円250円241円345円274円2173円.py.dot" create mode 100644 "py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-344円272円253円345円205円203円346円250円241円345円274円217円-345円205円203円347円261円273円.py" create mode 100644 "py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-344円272円253円345円205円203円346円250円241円345円274円217円-350円243円205円351円245円260円345円231円250円347円211円210円346円234円254円.py" create mode 100644 "py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-344円272円253円345円205円203円346円250円241円345円274円217円.py" create mode 100644 "py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円-345円205円203円347円261円273円.py" create mode 100644 "py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円-350円243円205円351円245円260円345円231円250円.py" create mode 100644 "py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円-351円207円215円345円206円231円new344円275円206円344円270円215円346円257円217円346円254円241円346円211円247円350円241円214円init346円226円271円345円274円217円.py" create mode 100644 "py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円.py" create mode 100644 "py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円216円237円345円236円213円346円250円241円345円274円217円.py" create mode 100644 "py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円257円271円350円261円241円346円261円240円346円250円241円345円274円217円.py" create mode 100644 "py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円273円272円351円200円240円350円200円205円346円250円241円345円274円217円.py" create mode 100644 "py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-346円212円275円350円261円241円345円267円245円345円216円202円346円250円241円345円274円217円.py" create mode 100644 "py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-347円256円200円345円215円225円345円267円245円345円216円202円346円250円241円345円274円217円.py" create mode 100644 "py_design/347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-mvc346円250円241円345円274円217円.py" create mode 100644 "py_design/347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-344円273円243円347円220円206円346円250円241円345円274円217円.py" create mode 100644 "py_design/347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-345円244円226円350円247円202円346円250円241円345円274円217円.py" create mode 100644 "py_design/347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-346円241円245円346円216円245円346円250円241円345円274円217円.py" create mode 100644 "py_design/347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-347円273円204円345円220円210円346円250円241円345円274円217円.py" create mode 100644 "py_design/347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-350円243円205円351円245円260円350円200円205円346円250円241円345円274円217円-345円207円275円346円225円260円350円243円205円351円245円260円345円231円250円.py" create mode 100644 "py_design/347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-350円243円205円351円245円260円350円200円205円346円250円241円345円274円217円-347円261円273円350円243円205円351円245円260円345円231円250円.py" create mode 100644 "py_design/347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-350円243円205円351円245円260円350円200円205円346円250円241円345円274円217円.py" create mode 100644 "py_design/347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-351円200円202円351円205円215円345円231円250円346円250円241円345円274円217円.py" create mode 100644 "py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-344円270円255円344円273円213円350円200円205円346円250円241円345円274円217円.py" create mode 100644 "py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円217円221円345円270円203円350円256円242円351円230円205円346円250円241円345円274円217円.py" create mode 100644 "py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円221円275円344円273円244円346円250円241円345円274円217円.py" create mode 100644 "py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円244円207円345円277円230円345円275円225円346円250円241円345円274円217円.py" create mode 100644 "py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円273円266円350円277円237円350円256円241円347円256円227円347円274円223円345円255円230円346円250円241円345円274円217円.py" create mode 100644 "py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-346円250円241円346円235円277円346円250円241円345円274円217円.py" create mode 100644 "py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-347円212円266円346円200円201円346円250円241円345円274円217円.py" create mode 100644 "py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-347円231円273円350円256円260円346円250円241円345円274円217円.py" create mode 100644 "py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-347円255円226円347円225円245円346円250円241円345円274円217円.py" create mode 100644 "py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円247円202円345円257円237円350円200円205円346円250円241円345円274円217円-351円207円215円346円226円260円345円256円236円347円216円260円346円227円245円345円277円227円347円263円273円347円273円237円.py" create mode 100644 "py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円247円243円351円207円212円345円231円250円346円250円241円345円274円217円.py" create mode 100644 "py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円256円277円351円227円256円350円200円205円346円250円241円345円274円217円.py" create mode 100644 "py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円264円243円344円273円273円351円223円276円346円250円241円345円274円217円.py" create mode 100644 "py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円207円346円273円244円345円231円250円346円250円241円345円274円217円.py" create mode 100644 "py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円255円344円273円243円345円231円250円346円250円241円345円274円217円-344円275円277円347円224円250円347円261円273円.py" create mode 100644 "py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円255円344円273円243円345円231円250円346円250円241円345円274円217円.py" create mode 100644 "py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円255円344円273円243円345円231円250円346円250円241円345円274円2173円.py" diff --git a/call.bat b/call.bat new file mode 100644 index 0000000..c72a926 --- /dev/null +++ b/call.bat @@ -0,0 +1,39 @@ +pyreverse 幹秀侏庁塀-峴圷庁塀-圷窃.py -p 幹秀侏庁塀-峴圷庁塀-圷窃.py +pyreverse 幹秀侏庁塀-峴圷庁塀-廾蔑匂井云.py -p 幹秀侏庁塀-峴圷庁塀-廾蔑匂井云.py +pyreverse 幹秀侏庁塀-峴圷庁塀.py -p 幹秀侏庁塀-峴圷庁塀.py +pyreverse 幹秀侏庁塀-汽箭庁塀-圷窃.py -p 幹秀侏庁塀-汽箭庁塀-圷窃.py +pyreverse 幹秀侏庁塀-汽箭庁塀-廾蔑匂.py -p 幹秀侏庁塀-汽箭庁塀-廾蔑匂.py +pyreverse 幹秀侏庁塀-汽箭庁塀-嶷亟new徽音耽肝峇佩init圭塀.py -p 幹秀侏庁塀-汽箭庁塀-嶷亟new徽音耽肝峇佩init圭塀.py +pyreverse 幹秀侏庁塀-汽箭庁塀.py -p 幹秀侏庁塀-汽箭庁塀.py +pyreverse 幹秀侏庁塀-圻侏庁塀.py -p 幹秀侏庁塀-圻侏庁塀.py +pyreverse 幹秀侏庁塀-斤嵆学庁塀.py -p 幹秀侏庁塀-斤嵆学庁塀.py +pyreverse 幹秀侏庁塀-秀夛宀庁塀.py -p 幹秀侏庁塀-秀夛宀庁塀.py +pyreverse 幹秀侏庁塀-渇嵆垢皆庁塀.py -p 幹秀侏庁塀-渇嵆垢皆庁塀.py +pyreverse 幹秀侏庁塀-酒汽垢皆庁塀.py -p 幹秀侏庁塀-酒汽垢皆庁塀.py +pyreverse 潤更侏庁塀-mvc庁塀.py -p 潤更侏庁塀-mvc庁塀.py +pyreverse 潤更侏庁塀-旗尖庁塀.py -p 潤更侏庁塀-旗尖庁塀.py +pyreverse 潤更侏庁塀-翌鉱庁塀.py -p 潤更侏庁塀-翌鉱庁塀.py +pyreverse 潤更侏庁塀-播俊庁塀.py -p 潤更侏庁塀-播俊庁塀.py +pyreverse 潤更侏庁塀-怏栽庁塀.py -p 潤更侏庁塀-怏栽庁塀.py +pyreverse 潤更侏庁塀-廾蔑宀庁塀-痕方廾蔑匂.py -p 潤更侏庁塀-廾蔑宀庁塀-痕方廾蔑匂.py +pyreverse 潤更侏庁塀-廾蔑宀庁塀-窃廾蔑匂.py -p 潤更侏庁塀-廾蔑宀庁塀-窃廾蔑匂.py +pyreverse 潤更侏庁塀-廾蔑宀庁塀.py -p 潤更侏庁塀-廾蔑宀庁塀.py +pyreverse 潤更侏庁塀-癖塘匂庁塀.py -p 潤更侏庁塀-癖塘匂庁塀.py +pyreverse 佩葎侏庁塀-嶄初宀庁塀.py -p 佩葎侏庁塀-嶄初宀庁塀.py +pyreverse 佩葎侏庁塀-窟下匡堋庁塀.py -p 佩葎侏庁塀-窟下匡堋庁塀.py +pyreverse 佩葎侏庁塀-凋綜庁塀.py -p 佩葎侏庁塀-凋綜庁塀.py +pyreverse 佩葎侏庁塀-姥梨村庁塀.py -p 佩葎侏庁塀-姥梨村庁塀.py +pyreverse 佩葎侏庁塀-决岳柴麻産贋庁塀.py -p 佩葎侏庁塀-决岳柴麻産贋庁塀.py +pyreverse 佩葎侏庁塀-庁医庁塀.py -p 佩葎侏庁塀-庁医庁塀.py +pyreverse 佩葎侏庁塀-彜蓑庁塀.py -p 佩葎侏庁塀-彜蓑庁塀.py +pyreverse 佩葎侏庁塀-鞠芝庁塀.py -p 佩葎侏庁塀-鞠芝庁塀.py +pyreverse 佩葎侏庁塀-貨待庁塀.py -p 佩葎侏庁塀-貨待庁塀.py +pyreverse 佩葎侏庁塀-鉱賀宀庁塀-嶷仟糞孖晩崗狼由.py -p 佩葎侏庁塀-鉱賀宀庁塀-嶷仟糞孖晩崗狼由.py +pyreverse 佩葎侏庁塀-盾瞥匂庁塀.py -p 佩葎侏庁塀-盾瞥匂庁塀.py +pyreverse 佩葎侏庁塀-恵諒宀庁塀.py -p 佩葎侏庁塀-恵諒宀庁塀.py +pyreverse 佩葎侏庁塀-夭販全庁塀.py -p 佩葎侏庁塀-夭販全庁塀.py +pyreverse 佩葎侏庁塀-狛陀匂庁塀.py -p 佩葎侏庁塀-狛陀匂庁塀.py +pyreverse 佩葎侏庁塀-亨旗匂庁塀-聞喘窃.py -p 佩葎侏庁塀-亨旗匂庁塀-聞喘窃.py +pyreverse 佩葎侏庁塀-亨旗匂庁塀.py -p 佩葎侏庁塀-亨旗匂庁塀.py +pyreverse 佩葎侏庁塀-亨旗匂庁塀3.py -p 佩葎侏庁塀-亨旗匂庁塀3.py + diff --git "a/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-344円272円253円345円205円203円346円250円241円345円274円217円-345円205円203円347円261円273円.py.dot" "b/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-344円272円253円345円205円203円346円250円241円345円274円217円-345円205円203円347円261円273円.py.dot" new file mode 100644 index 0000000..752a6dc --- /dev/null +++ "b/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-344円272円253円345円205円203円346円250円241円345円274円217円-345円205円203円347円261円273円.py.dot" @@ -0,0 +1,7 @@ +digraph "classes_???綮阪??罔≦??-篋????罔≦??-???膠?.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"???綮阪??罔≦??-篋????罔≦??-???膠?.A" [color="black", fontcolor="black", label=<{a|
|}>, shape="record", style="solid"]; +"???綮阪??罔≦??-篋????罔≦??-???膠?.FlyweightMetaClass" [color="black", fontcolor="black", label=<{flyweightmetaclass|
|}>, shape="record", style="solid"]; +} diff --git "a/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-344円272円253円345円205円203円346円250円241円345円274円217円-350円243円205円351円245円260円345円231円250円347円211円210円346円234円254円.py.dot" "b/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-344円272円253円345円205円203円346円250円241円345円274円217円-350円243円205円351円245円260円345円231円250円347円211円210円346円234円254円.py.dot" new file mode 100644 index 0000000..b9f25cb --- /dev/null +++ "b/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-344円272円253円345円205円203円346円250円241円345円274円217円-350円243円205円351円245円260円345円231円250円347円211円210円346円234円254円.py.dot" @@ -0,0 +1,6 @@ +digraph "classes_???綮阪??罔≦??-篋????罔≦??-茖?薀医???????.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"???綮阪??罔≦??-篋????罔≦??-茖?薀医???????.A" [color="black", fontcolor="black", label=<{a|identity
|eat()
}>, shape="record", style="solid"]; +} diff --git "a/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-344円272円253円345円205円203円346円250円241円345円274円217円.py.dot" "b/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-344円272円253円345円205円203円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..dbd24bd --- /dev/null +++ "b/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-344円272円253円345円205円203円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,6 @@ +digraph "classes_???綮阪??罔≦??-篋????罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"???綮阪??罔≦??-篋????罔≦??.A" [color="black", fontcolor="black", label=<{a|identity
pool : dict
|eat()
}>, shape="record", style="solid"]; +} diff --git "a/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円-345円205円203円347円261円273円.py.dot" "b/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円-345円205円203円347円261円273円.py.dot" new file mode 100644 index 0000000..855806a --- /dev/null +++ "b/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円-345円205円203円347円261円273円.py.dot" @@ -0,0 +1,7 @@ +digraph "classes_???綮阪??罔≦??-???箴?罔≦??-???膠?.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"???綮阪??罔≦??-???箴?罔≦??-???膠?.A" [color="black", fontcolor="black", label=<{a|identity
|eat()
}>, shape="record", style="solid"]; +"???綮阪??罔≦??-???箴?罔≦??-???膠?.Singleton" [color="black", fontcolor="black", label=<{singleton|
|}>, shape="record", style="solid"]; +} diff --git "a/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円-350円243円205円351円245円260円345円231円250円.py.dot" "b/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円-350円243円205円351円245円260円345円231円250円.py.dot" new file mode 100644 index 0000000..48c4d9b --- /dev/null +++ "b/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円-350円243円205円351円245円260円345円231円250円.py.dot" @@ -0,0 +1,6 @@ +digraph "classes_???綮阪??罔≦??-???箴?罔≦??-茖?薀医??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"???綮阪??罔≦??-???箴?罔≦??-茖?薀医??.A" [color="black", fontcolor="black", label=<{a|identity
|eat()
}>, shape="record", style="solid"]; +} diff --git "a/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円-351円207円215円345円206円231円new344円275円206円344円270円215円346円257円217円346円254円241円346円211円247円350円241円214円init346円226円271円345円274円217円.py.dot" "b/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円-351円207円215円345円206円231円new344円275円206円344円270円215円346円257円217円346円254円241円346円211円247円350円241円214円init346円226円271円345円274円217円.py.dot" new file mode 100644 index 0000000..6013495 --- /dev/null +++ "b/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円-351円207円215円345円206円231円new344円275円206円344円270円215円346円257円217円346円254円241円346円211円247円350円241円214円init346円226円271円345円274円217円.py.dot" @@ -0,0 +1,6 @@ +digraph "classes_???綮阪??罔≦??-???箴?罔≦??-??????new篏?筝?罸閩≧?ц??init??劫??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"???綮阪??罔≦??-???箴?罔≦??-??????new篏?筝?罸閩≧?ц??init??劫??.A" [color="black", fontcolor="black", label=<{a|identity
|eat()
}>, shape="record", style="solid"]; +} diff --git "a/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円.py.dot" "b/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..59f1628 --- /dev/null +++ "b/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,6 @@ +digraph "classes_???綮阪??罔≦??-???箴?罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"???綮阪??罔≦??-???箴?罔≦??.A" [color="black", fontcolor="black", label=<{a|identity
|eat()
}>, shape="record", style="solid"]; +} diff --git "a/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円216円237円345円236円213円346円250円241円345円274円217円.py.dot" "b/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円216円237円345円236円213円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..f28aec4 --- /dev/null +++ "b/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円216円237円345円236円213円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,7 @@ +digraph "classes_???綮阪??罔≦??-??????罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"???綮阪??罔≦??-??????罔≦??.Book" [color="black", fontcolor="black", label=<{book|authors
name
price
|}>, shape="record", style="solid"]; +"???綮阪??罔≦??-??????罔≦??.Prototype" [color="black", fontcolor="black", label=<{prototype|objects : dict
|clone(identifier)
register(identifier, obj)
unregister(identifier)
}>, shape="record", style="solid"]; +} diff --git "a/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円257円271円350円261円241円346円261円240円346円250円241円345円274円217円.py.dot" "b/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円257円271円350円261円241円346円261円240円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..1b5f03a --- /dev/null +++ "b/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円257円271円350円261円241円346円261円240円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,6 @@ +digraph "classes_???綮阪??罔≦??-絲壕院羆?罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"???綮阪??罔≦??-絲壕院羆?罔≦??.QueueObject" [color="black", fontcolor="black", label=<{queueobject|object : NoneType
|}>, shape="record", style="solid"]; +} diff --git "a/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円273円272円351円200円240円350円200円205円346円250円241円345円274円217円.py.dot" "b/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円273円272円351円200円240円350円200円205円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..7ed3a2e --- /dev/null +++ "b/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円273円272円351円200円240円350円200円205円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,16 @@ +digraph "classes_???綮阪??罔≦??-綮咲?????罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"???綮阪??罔≦??-綮咲?????罔≦??.AbsBuilder" [color="black", fontcolor="black", label=<{absbuilder|building : NoneType
|build_floor()
build_size()
new_building()
}>, shape="record", style="solid"]; +"???綮阪??罔≦??-綮咲?????罔≦??.Building" [color="black", fontcolor="black", label=<{building|floor : str, NoneType
size : str, NoneType
|}>, shape="record", style="solid"]; +"???綮阪??罔≦??-綮咲?????罔≦??.Client" [color="black", fontcolor="black", label=<{client|
|build(build_type)
}>, shape="record", style="solid"]; +"???綮阪??罔≦??-綮咲?????罔≦??.Director" [color="black", fontcolor="black", label=<{director|builder : NoneType
|construct_building()
get_building()
}>, shape="record", style="solid"]; +"???綮阪??罔≦??-綮咲?????罔≦??.FlatBuilder" [color="black", fontcolor="black", label=<{flatbuilder|
|build_floor()
build_size()
}>, shape="record", style="solid"]; +"???綮阪??罔≦??-綮咲?????罔≦??.HouseBuilder" [color="black", fontcolor="black", label=<{housebuilder|
|build_floor()
build_size()
}>, shape="record", style="solid"]; +"???綮阪??罔≦??-綮咲?????罔≦??.FlatBuilder" -> "???綮阪??罔≦??-綮咲?????罔≦??.AbsBuilder" [arrowhead="empty", arrowtail="none"]; +"???綮阪??罔≦??-綮咲?????罔≦??.HouseBuilder" -> "???綮阪??罔≦??-綮咲?????罔≦??.AbsBuilder" [arrowhead="empty", arrowtail="none"]; +"???綮阪??罔≦??-綮咲?????罔≦??.Building" -> "???綮阪??罔≦??-綮咲?????罔≦??.AbsBuilder" [arrowhead="diamond", arrowtail="none", fontcolor="green", label="building", style="solid"]; +"???綮阪??罔≦??-綮咲?????罔≦??.FlatBuilder" -> "???綮阪??罔≦??-綮咲?????罔≦??.Director" [arrowhead="odiamond", arrowtail="none", fontcolor="green", label="builder", style="solid"]; +"???綮阪??罔≦??-綮咲?????罔≦??.HouseBuilder" -> "???綮阪??罔≦??-綮咲?????罔≦??.Director" [arrowhead="odiamond", arrowtail="none", fontcolor="green", label="builder", style="solid"]; +} diff --git "a/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-346円212円275円350円261円241円345円267円245円345円216円202円346円250円241円345円274円217円.py.dot" "b/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-346円212円275円350円261円241円345円267円245円345円216円202円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..bb85f70 --- /dev/null +++ "b/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-346円212円275円350円261円241円345円267円245円345円216円202円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,12 @@ +digraph "classes_???綮阪??罔≦??-??処院綏ュ??罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"???綮阪??罔≦??-??処院綏ュ??罔≦??.Apple5" [color="black", fontcolor="black", label=<{apple5|phone_name : str
|send_msg()
}>, shape="record", style="solid"]; +"???綮阪??罔≦??-??処院綏ュ??罔≦??.Apple6" [color="black", fontcolor="black", label=<{apple6|phone_name : str
|send_msg()
}>, shape="record", style="solid"]; +"???綮阪??罔≦??-??処院綏ュ??罔≦??.AppleFactory" [color="black", fontcolor="black", label=<{applefactory|
|get_phone(phone_type)
}>, shape="record", style="solid"]; +"???綮阪??罔≦??-??処院綏ュ??罔≦??.FactoryProducer" [color="black", fontcolor="black", label=<{factoryproducer|
|get_factory(factory_name)
}>, shape="record", style="solid"]; +"???綮阪??罔≦??-??処院綏ュ??罔≦??.XiaomFactory" [color="black", fontcolor="black", label=<{xiaomfactory|
|get_phone(phone_type)
}>, shape="record", style="solid"]; +"???綮阪??罔≦??-??処院綏ュ??罔≦??.Xiaomi5" [color="black", fontcolor="black", label=<{xiaomi5|phone_name : str
|send_msg()
}>, shape="record", style="solid"]; +"???綮阪??罔≦??-??処院綏ュ??罔≦??.Xiaomi6" [color="black", fontcolor="black", label=<{xiaomi6|phone_name : str
|send_msg()
}>, shape="record", style="solid"]; +} diff --git "a/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-347円256円200円345円215円225円345円267円245円345円216円202円346円250円241円345円274円217円.py.dot" "b/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-347円256円200円345円215円225円345円267円245円345円216円202円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..e6f4717 --- /dev/null +++ "b/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-347円256円200円345円215円225円345円267円245円345円216円202円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,7 @@ +digraph "classes_???綮阪??罔≦??-膊????綏ュ??罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"???綮阪??罔≦??-膊????綏ュ??罔≦??.Xiaomi5" [color="black", fontcolor="black", label=<{xiaomi5|phone_name : str
|send_msg()
}>, shape="record", style="solid"]; +"???綮阪??罔≦??-膊????綏ュ??罔≦??.Xiaomi6" [color="black", fontcolor="black", label=<{xiaomi6|phone_name : str
|send_msg()
}>, shape="record", style="solid"]; +} diff --git "a/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-mvc346円250円241円345円274円217円.py.dot" "b/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-mvc346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..cfb48f7 --- /dev/null +++ "b/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-mvc346円250円241円345円274円217円.py.dot" @@ -0,0 +1,10 @@ +digraph "classes_膸???????罔≦??-mvc罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"膸???????罔≦??-mvc罔≦??.QuoteModel" [color="black", fontcolor="black", label=<{quotemodel|
|get_quote(n)
}>, shape="record", style="solid"]; +"膸???????罔≦??-mvc罔≦??.QuoteTerminalController" [color="black", fontcolor="black", label=<{quoteterminalcontroller|model
view
|run()
}>, shape="record", style="solid"]; +"膸???????罔≦??-mvc罔≦??.QuoteTerminalView" [color="black", fontcolor="black", label=<{quoteterminalview|
|error(msg)
select_quote()
show(quote)
}>, shape="record", style="solid"]; +"膸???????罔≦??-mvc罔≦??.QuoteModel" -> "膸???????罔≦??-mvc罔≦??.QuoteTerminalController" [arrowhead="diamond", arrowtail="none", fontcolor="green", label="model", style="solid"]; +"膸???????罔≦??-mvc罔≦??.QuoteTerminalView" -> "膸???????罔≦??-mvc罔≦??.QuoteTerminalController" [arrowhead="diamond", arrowtail="none", fontcolor="green", label="view", style="solid"]; +} diff --git "a/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-344円273円243円347円220円206円346円250円241円345円274円217円.py.dot" "b/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-344円273円243円347円220円206円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..5b4d5a8 --- /dev/null +++ "b/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-344円273円243円347円220円206円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,8 @@ +digraph "classes_膸???????罔≦??-篁g??罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"膸???????罔≦??-篁g??罔≦??.Info" [color="black", fontcolor="black", label=<{info|protected
secret : str
|add(user)
read()
}>, shape="record", style="solid"]; +"膸???????罔≦??-篁g??罔≦??.SensitiveInfo" [color="black", fontcolor="black", label=<{sensitiveinfo|users : list
|add(user)
read()
}>, shape="record", style="solid"]; +"膸???????罔≦??-篁g??罔≦??.SensitiveInfo" -> "膸???????罔≦??-篁g??罔≦??.Info" [arrowhead="diamond", arrowtail="none", fontcolor="green", label="protected", style="solid"]; +} diff --git "a/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-345円244円226円350円247円202円346円250円241円345円274円217円.py.dot" "b/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-345円244円226円350円247円202円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..7ad975d --- /dev/null +++ "b/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-345円244円226円350円247円202円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,12 @@ +digraph "classes_膸???????罔≦??-紊?茹?罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"膸???????罔≦??-紊?茹?罔≦??.A" [color="black", fontcolor="black", label=<{a|
|jump()
run()
}>, shape="record", style="solid"]; +"膸???????罔≦??-紊?茹?罔≦??.B" [color="black", fontcolor="black", label=<{b|
|jump()
run()
}>, shape="record", style="solid"]; +"膸???????罔≦??-紊?茹?罔≦??.C" [color="black", fontcolor="black", label=<{c|
|jump()
run()
}>, shape="record", style="solid"]; +"膸???????罔≦??-紊?茹?罔≦??.Facade" [color="black", fontcolor="black", label=<{facade|a
b
c
|jump()
run()
}>, shape="record", style="solid"]; +"膸???????罔≦??-紊?茹?罔≦??.A" -> "膸???????罔≦??-紊?茹?罔≦??.Facade" [arrowhead="diamond", arrowtail="none", fontcolor="green", label="a", style="solid"]; +"膸???????罔≦??-紊?茹?罔≦??.B" -> "膸???????罔≦??-紊?茹?罔≦??.Facade" [arrowhead="diamond", arrowtail="none", fontcolor="green", label="b", style="solid"]; +"膸???????罔≦??-紊?茹?罔≦??.C" -> "膸???????罔≦??-紊?茹?罔≦??.Facade" [arrowhead="diamond", arrowtail="none", fontcolor="green", label="c", style="solid"]; +} diff --git "a/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-346円241円245円346円216円245円346円250円241円345円274円217円.py.dot" "b/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-346円241円245円346円216円245円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..c5041dd --- /dev/null +++ "b/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-346円241円245円346円216円245円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,9 @@ +digraph "classes_膸???????罔≦??-罅ユ・罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"膸???????罔≦??-罅ユ・罔≦??.A" [color="black", fontcolor="black", label=<{a|
|run(name)
}>, shape="record", style="solid"]; +"膸???????罔≦??-罅ユ・罔≦??.B" [color="black", fontcolor="black", label=<{b|
|run(name)
}>, shape="record", style="solid"]; +"膸???????罔≦??-罅ユ・罔≦??.Bridge" [color="black", fontcolor="black", label=<{bridge|ager : str
classname
|bridge_run()
}>, shape="record", style="solid"]; +"膸???????罔≦??-罅ユ・罔≦??.B" -> "膸???????罔≦??-罅ユ・罔≦??.Bridge" [arrowhead="diamond", arrowtail="none", fontcolor="green", label="classname", style="solid"]; +} diff --git "a/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-347円273円204円345円220円210円346円250円241円345円274円217円.py.dot" "b/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-347円273円204円345円220円210円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..50df8e8 --- /dev/null +++ "b/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-347円273円204円345円220円210円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,12 @@ +digraph "classes_膸???????罔≦??-膸????罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"膸???????罔≦??-膸????罔≦??.Company" [color="black", fontcolor="black", label=<{company|name
name : str
|add(company)
display(depth)
line_of_duty()
remove(company)
}>, shape="record", style="solid"]; +"膸???????罔≦??-膸????罔≦??.ConcreteCompany" [color="black", fontcolor="black", label=<{concretecompany|childrencompany : NoneType
childrenCompany : list
|add(company)
display(depth)
line_of_duty()
remove(company)
}>, shape="record", style="solid"]; +"膸???????罔≦??-膸????罔≦??.FinanceDepartment" [color="black", fontcolor="black", label=<{financedepartment|
|display(depth)
line_of_duty()
}>, shape="record", style="solid"]; +"膸???????罔≦??-膸????罔≦??.HRDepartment" [color="black", fontcolor="black", label=<{hrdepartment|
|display(depth)
line_of_duty()
}>, shape="record", style="solid"]; +"膸???????罔≦??-膸????罔≦??.ConcreteCompany" -> "膸???????罔≦??-膸????罔≦??.Company" [arrowhead="empty", arrowtail="none"]; +"膸???????罔≦??-膸????罔≦??.FinanceDepartment" -> "膸???????罔≦??-膸????罔≦??.Company" [arrowhead="empty", arrowtail="none"]; +"膸???????罔≦??-膸????罔≦??.HRDepartment" -> "膸???????罔≦??-膸????罔≦??.Company" [arrowhead="empty", arrowtail="none"]; +} diff --git "a/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-350円243円205円351円245円260円350円200円205円346円250円241円345円274円217円-345円207円275円346円225円260円350円243円205円351円245円260円345円231円250円.py.dot" "b/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-350円243円205円351円245円260円350円200円205円346円250円241円345円274円217円-345円207円275円346円225円260円350円243円205円351円245円260円345円231円250円.py.dot" new file mode 100644 index 0000000..d01087d --- /dev/null +++ "b/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-350円243円205円351円245円260円350円200円205円346円250円241円345円274円217円-345円207円275円346円225円260円350円243円205円351円245円260円345円231円250円.py.dot" @@ -0,0 +1,5 @@ +digraph "classes_膸???????罔≦??-茖?薀域??罔≦??-??醇?域??薀医??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +} diff --git "a/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-350円243円205円351円245円260円350円200円205円346円250円241円345円274円217円-347円261円273円350円243円205円351円245円260円345円231円250円.py.dot" "b/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-350円243円205円351円245円260円350円200円205円346円250円241円345円274円217円-347円261円273円350円243円205円351円245円260円345円231円250円.py.dot" new file mode 100644 index 0000000..5dd389a --- /dev/null +++ "b/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-350円243円205円351円245円260円350円200円205円346円250円241円345円274円217円-347円261円273円350円243円205円351円245円260円345円231円250円.py.dot" @@ -0,0 +1,7 @@ +digraph "classes_膸???????罔≦??-茖?薀域??罔≦??-膠肢??薀医??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"膸???????罔≦??-茖?薀域??罔≦??-膠肢??薀医??.Profiled" [color="black", fontcolor="black", label=<{profiled|ncalls : int
|}>, shape="record", style="solid"]; +"膸???????罔≦??-茖?薀域??罔≦??-膠肢??薀医??.Spam" [color="black", fontcolor="black", label=<{spam|
|bar(x)
}>, shape="record", style="solid"]; +} diff --git "a/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-350円243円205円351円245円260円350円200円205円346円250円241円345円274円217円.py.dot" "b/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-350円243円205円351円245円260円350円200円205円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..1caaf49 --- /dev/null +++ "b/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-350円243円205円351円245円260円350円200円205円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,7 @@ +digraph "classes_膸???????罔≦??-茖?薀域??罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"膸???????罔≦??-茖?薀域??罔≦??.Foo" [color="black", fontcolor="black", label=<{foo|
|f1()
f2()
}>, shape="record", style="solid"]; +"膸???????罔≦??-茖?薀域??罔≦??.Foo_decorator" [color="black", fontcolor="black", label=<{foo_decorator|
|f1()
}>, shape="record", style="solid"]; +} diff --git "a/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-351円200円202円351円205円215円345円231円250円346円250円241円345円274円217円.py.dot" "b/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-351円200円202円351円205円215円345円231円250円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..6744b9b --- /dev/null +++ "b/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-351円200円202円351円205円215円345円231円250円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,9 @@ +digraph "classes_膸???????罔≦??-?????????罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"膸???????罔≦??-?????????罔≦??.Adapter" [color="black", fontcolor="black", label=<{adapter|
|run()
speak()
}>, shape="record", style="solid"]; +"膸???????罔≦??-?????????罔≦??.Cat" [color="black", fontcolor="black", label=<{cat|name
|cat_run()
miaomiao()
}>, shape="record", style="solid"]; +"膸???????罔≦??-?????????罔≦??.Dog" [color="black", fontcolor="black", label=<{dog|name
|dog_run()
wangwang()
}>, shape="record", style="solid"]; +"膸???????罔≦??-?????????罔≦??.Sheep" [color="black", fontcolor="black", label=<{sheep|name
|miemie()
sheet_run()
}>, shape="record", style="solid"]; +} diff --git "a/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-344円270円255円344円273円213円350円200円205円346円250円241円345円274円217円.py.dot" "b/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-344円270円255円344円273円213円350円200円205円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..e877f86 --- /dev/null +++ "b/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-344円270円255円344円273円213円350円200円205円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,7 @@ +digraph "classes_茵?筝阪??罔≦??-筝TEL?????罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"茵?筝阪??罔≦??-筝TEL?????罔≦??.ChatRoom" [color="black", fontcolor="black", label=<{chatroom|
|show_message(user, msg)
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-筝TEL?????罔≦??.User" [color="black", fontcolor="black", label=<{user|name
|send_msg(msg)
}>, shape="record", style="solid"]; +} diff --git "a/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円217円221円345円270円203円350円256円242円351円230円205円346円250円241円345円274円217円.py.dot" "b/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円217円221円345円270円203円350円256円242円351円230円205円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..74b699c --- /dev/null +++ "b/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円217円221円345円270円203円350円256円242円351円230円205円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,8 @@ +digraph "classes_茵?筝阪??罔≦??-???絽?莅∫??罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"茵?筝阪??罔≦??-???絽?莅∫??罔≦??.Event" [color="black", fontcolor="black", label=<{event|client_list : dict
|listen(key, fn)
remove(key, fn)
trigger()
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-???絽?莅∫??罔≦??.SalesOffice" [color="black", fontcolor="black", label=<{salesoffice|
|}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-???絽?莅∫??罔≦??.SalesOffice" -> "茵?筝阪??罔≦??-???絽?莅∫??罔≦??.Event" [arrowhead="empty", arrowtail="none"]; +} diff --git "a/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円221円275円344円273円244円346円250円241円345円274円217円.py.dot" "b/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円221円275円344円273円244円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..e030efc --- /dev/null +++ "b/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円221円275円344円273円244円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,8 @@ +digraph "classes_茵?筝阪??罔≦??-??巡擦罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"茵?筝阪??罔≦??-??巡擦罔≦??.CreateFile" [color="black", fontcolor="black", label=<{createfile|path
txt : str
|execute()
undo()
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-??巡擦罔≦??.ReadFile" [color="black", fontcolor="black", label=<{readfile|path
|execute()
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-??巡擦罔≦??.RenameFile" [color="black", fontcolor="black", label=<{renamefile|dest
src
|execute()
undo()
}>, shape="record", style="solid"]; +} diff --git "a/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円244円207円345円277円230円345円275円225円346円250円241円345円274円217円.py.dot" "b/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円244円207円345円277円230円345円275円225円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..52d5509 --- /dev/null +++ "b/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円244円207円345円277円230円345円275円225円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,8 @@ +digraph "classes_茵?筝阪??罔≦??-紊?綽?綵?罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"茵?筝阪??罔≦??-紊?綽?綵?罔≦??.Caretaker" [color="black", fontcolor="black", label=<{caretaker|memento
|}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-紊?綽?綵?罔≦??.Memento" [color="black", fontcolor="black", label=<{memento|state
|}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-紊?綽?綵?罔≦??.Originator" [color="black", fontcolor="black", label=<{originator|state : str
|create_memento()
set_memento(memento)
show()
}>, shape="record", style="solid"]; +} diff --git "a/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円273円266円350円277円237円350円256円241円347円256円227円347円274円223円345円255円230円346円250円241円345円274円217円.py.dot" "b/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円273円266円350円277円237円350円256円241円347円256円227円347円274円223円345円255円230円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..7356786 --- /dev/null +++ "b/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円273円266円350円277円237円350円256円241円347円256円227円347円274円223円345円255円230円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,8 @@ +digraph "classes_茵?筝阪??罔≦??-綮区??莅∞??膽?絖?罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"茵?筝阪??罔≦??-綮区??莅∞??膽?絖?罔≦??.FunctionResultCacher" [color="black", fontcolor="black", label=<{functionresultcacher|func_result_dict : dict
|cached_function_result_for_a_time(cache_time: float)
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-綮区??莅∞??膽?絖?罔≦??.cached_class_property" [color="black", fontcolor="black", label=<{cached_class_property|func
|}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-綮区??莅∞??膽?絖?罔≦??.cached_instance_property" [color="black", fontcolor="black", label=<{cached_instance_property|func
|}>, shape="record", style="solid"]; +} diff --git "a/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-346円250円241円346円235円277円346円250円241円345円274円217円.py.dot" "b/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-346円250円241円346円235円277円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..4491c76 --- /dev/null +++ "b/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-346円250円241円346円235円277円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,8 @@ +digraph "classes_茵?筝阪??罔≦??-罔≧?炊─綣?.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"茵?筝阪??罔≦??-罔≧?炊─綣?.AbstractClass" [color="black", fontcolor="black", label=<{abstractclass|
|operation1()
operation2()
operation3()
template_method()
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-罔≧?炊─綣?.ConcreteClass" [color="black", fontcolor="black", label=<{concreteclass|
|operation1()
operation2()
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-罔≧?炊─綣?.ConcreteClass" -> "茵?筝阪??罔≦??-罔≧?炊─綣?.AbstractClass" [arrowhead="empty", arrowtail="none"]; +} diff --git "a/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-347円212円266円346円200円201円346円250円241円345円274円217円.py.dot" "b/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-347円212円266円346円200円201円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..8fe90b0 --- /dev/null +++ "b/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-347円212円266円346円200円201円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,14 @@ +digraph "classes_茵?筝阪??罔≦??-??倶??罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"茵?筝阪??罔≦??-??倶??罔≦??.AmState" [color="black", fontcolor="black", label=<{amstate|name : str
pos : int
radio
stations : list
|toggle_amfm()
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-??倶??罔≦??.FmState" [color="black", fontcolor="black", label=<{fmstate|name : str
pos : int
radio
stations : list
|toggle_amfm()
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-??倶??罔≦??.Radio" [color="black", fontcolor="black", label=<{radio|amstate
fmstate
state
|scan()
toggle_amfm()
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-??倶??罔≦??.State" [color="black", fontcolor="black", label=<{state|pos : int
|scan()
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-??倶??罔≦??.AmState" -> "茵?筝阪??罔≦??-??倶??罔≦??.State" [arrowhead="empty", arrowtail="none"]; +"茵?筝阪??罔≦??-??倶??罔≦??.FmState" -> "茵?筝阪??罔≦??-??倶??罔≦??.State" [arrowhead="empty", arrowtail="none"]; +"茵?筝阪??罔≦??-??倶??罔≦??.AmState" -> "茵?筝阪??罔≦??-??倶??罔≦??.Radio" [arrowhead="diamond", arrowtail="none", fontcolor="green", label="amstate", style="solid"]; +"茵?筝阪??罔≦??-??倶??罔≦??.AmState" -> "茵?筝阪??罔≦??-??倶??罔≦??.Radio" [arrowhead="diamond", arrowtail="none", fontcolor="green", label="state", style="solid"]; +"茵?筝阪??罔≦??-??倶??罔≦??.FmState" -> "茵?筝阪??罔≦??-??倶??罔≦??.Radio" [arrowhead="diamond", arrowtail="none", fontcolor="green", label="fmstate", style="solid"]; +} diff --git "a/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-347円231円273円350円256円260円346円250円241円345円274円217円.py.dot" "b/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-347円231円273円350円256円260円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..3b56248 --- /dev/null +++ "b/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-347円231円273円350円256円260円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,9 @@ +digraph "classes_茵?筝阪??罔≦??-??肢佖罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"茵?筝阪??罔≦??-??肢佖罔≦??.BaseRegisteredClass" [color="black", fontcolor="black", label=<{baseregisteredclass|
|}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-??肢佖罔≦??.ClassRegistree" [color="black", fontcolor="black", label=<{classregistree|
|}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-??肢佖罔≦??.RegistryHolder" [color="black", fontcolor="black", label=<{registryholder|registry : dict
|get_registry()
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-??肢佖罔≦??.ClassRegistree" -> "茵?筝阪??罔≦??-??肢佖罔≦??.BaseRegisteredClass" [arrowhead="empty", arrowtail="none"]; +} diff --git "a/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-347円255円226円347円225円245円346円250円241円345円274円217円.py.dot" "b/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-347円255円226円347円225円245円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..2f34025 --- /dev/null +++ "b/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-347円255円226円347円225円245円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,11 @@ +digraph "classes_茵?筝阪??罔≦??-膈???ユ─綣?.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"茵?筝阪??罔≦??-膈???ユ─綣?.FaultStrategy" [color="black", fontcolor="black", label=<{faultstrategy|
|process()
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-膈???ユ─綣?.NormalStrategy" [color="black", fontcolor="black", label=<{normalstrategy|
|process()
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-膈???ユ─綣?.Park" [color="black", fontcolor="black", label=<{park|
|geoProcess()
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-膈???ユ─綣?.Strategy" [color="black", fontcolor="black", label=<{strategy|
|process()
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-膈???ユ─綣?.FaultStrategy" -> "茵?筝阪??罔≦??-膈???ユ─綣?.Strategy" [arrowhead="empty", arrowtail="none"]; +"茵?筝阪??罔≦??-膈???ユ─綣?.NormalStrategy" -> "茵?筝阪??罔≦??-膈???ユ─綣?.Strategy" [arrowhead="empty", arrowtail="none"]; +} diff --git "a/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円247円202円345円257円237円350円200円205円346円250円241円345円274円217円-351円207円215円346円226円260円345円256円236円347円216円260円346円227円245円345円277円227円347円263円273円347円273円237円.py.dot" "b/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円247円202円345円257円237円350円200円205円346円250円241円345円274円217円-351円207円215円346円226円260円345円256円236円347円216円260円346円227円245円345円277円227円347円263円273円347円273円237円.py.dot" new file mode 100644 index 0000000..68b18aa --- /dev/null +++ "b/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円247円202円345円257円237円350円200円205円346円250円241円345円274円217円-351円207円215円346円226円260円345円256円236円347円216円260円346円227円245円345円277円227円347円263円273円347円273円237円.py.dot" @@ -0,0 +1,15 @@ +digraph "classes_茵?筝阪??罔≦??-茹?絲????罔≦??-?????医???ー??ュ??膤紫??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"茵?筝阪??罔≦??-茹?絲????罔≦??-?????医???ー??ュ??膤紫??.AbstractHandler" [color="black", fontcolor="black", label=<{abstracthandler|
|emit(record)
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-茹?絲????罔≦??-?????医???ー??ュ??膤紫??.DingdingHandler" [color="black", fontcolor="black", label=<{dingdinghandler|
|emit(record)
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-茹?絲????罔≦??-?????医???ー??ュ??膤紫??.FileHandler" [color="black", fontcolor="black", label=<{filehandler|
|emit(record)
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-茹?絲????罔≦??-?????医???ー??ュ??膤紫??.Logger" [color="black", fontcolor="black", label=<{logger|handlers : list
name
|add_handler(handler)
log(record: str)
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-茹?絲????罔≦??-?????医???ー??ュ??膤紫??.MailHandler" [color="black", fontcolor="black", label=<{mailhandler|
|emit(record)
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-茹?絲????罔≦??-?????医???ー??ュ??膤紫??.StreamHandler" [color="black", fontcolor="black", label=<{streamhandler|
|emit(record)
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-茹?絲????罔≦??-?????医???ー??ュ??膤紫??.DingdingHandler" -> "茵?筝阪??罔≦??-茹?絲????罔≦??-?????医???ー??ュ??膤紫??.AbstractHandler" [arrowhead="empty", arrowtail="none"]; +"茵?筝阪??罔≦??-茹?絲????罔≦??-?????医???ー??ュ??膤紫??.FileHandler" -> "茵?筝阪??罔≦??-茹?絲????罔≦??-?????医???ー??ュ??膤紫??.AbstractHandler" [arrowhead="empty", arrowtail="none"]; +"茵?筝阪??罔≦??-茹?絲????罔≦??-?????医???ー??ュ??膤紫??.MailHandler" -> "茵?筝阪??罔≦??-茹?絲????罔≦??-?????医???ー??ュ??膤紫??.AbstractHandler" [arrowhead="empty", arrowtail="none"]; +"茵?筝阪??罔≦??-茹?絲????罔≦??-?????医???ー??ュ??膤紫??.StreamHandler" -> "茵?筝阪??罔≦??-茹?絲????罔≦??-?????医???ー??ュ??膤紫??.AbstractHandler" [arrowhead="empty", arrowtail="none"]; +} diff --git "a/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円247円243円351円207円212円345円231円250円346円250円241円345円274円217円.py.dot" "b/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円247円243円351円207円212円345円231円250円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..87c32c2 --- /dev/null +++ "b/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円247円243円351円207円212円345円231円250円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,9 @@ +digraph "classes_茵?筝阪??罔≦??-茹i?????罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"茵?筝阪??罔≦??-茹i?????罔≦??.Expression" [color="black", fontcolor="black", label=<{expression|
|execute(play_key, play_value)
interpret(context)
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-茹i?????罔≦??.NormGuitar" [color="black", fontcolor="black", label=<{normguitar|
|execute(key, value)
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-茹i?????罔≦??.PlayContext" [color="black", fontcolor="black", label=<{playcontext|play_text : NoneType
play_text : str
|}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-茹i?????罔≦??.NormGuitar" -> "茵?筝阪??罔≦??-茹i?????罔≦??.Expression" [arrowhead="empty", arrowtail="none"]; +} diff --git "a/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円256円277円351円227円256円350円200円205円346円250円241円345円274円217円.py.dot" "b/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円256円277円351円227円256円350円200円205円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..5cfdea4 --- /dev/null +++ "b/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円256円277円351円227円256円350円200円205円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,12 @@ +digraph "classes_茵?筝阪??罔≦??-莅翠?勤??罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"茵?筝阪??罔≦??-莅翠?勤??罔≦??.Accounting" [color="black", fontcolor="black", label=<{accounting|duty : str
id : str
|visit(year_data)
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-莅翠?勤??罔≦??.Advisor" [color="black", fontcolor="black", label=<{advisor|duty : str
id : str
|visit(year_data)
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-莅翠?勤??罔≦??.AnalyseData" [color="black", fontcolor="black", label=<{analysedata|datalist : list
|add_data(year_data)
remove_data(year_data)
visit()
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-莅翠?勤??罔≦??.Audit" [color="black", fontcolor="black", label=<{audit|duty : str
id : str
|visit(year_data)
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-莅翠?勤??罔≦??.Finance" [color="black", fontcolor="black", label=<{finance|cost : NoneType
history_cost : NoneType
history_salesvolume : NoneType
salesvolume : NoneType
|accept(visitor)
set_cost(value)
set_history_cost(value)
set_history_salesvolume(value)
set_salesvolume(value)
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-莅翠?勤??罔≦??.Finance_year" [color="black", fontcolor="black", label=<{finance_year|analyst : list
year
|accept()
add_analyst(worker)
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-莅翠?勤??罔≦??.Finance_year" -> "茵?筝阪??罔≦??-莅翠?勤??罔≦??.Finance" [arrowhead="empty", arrowtail="none"]; +} diff --git "a/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円264円243円344円273円273円351円223円276円346円250円241円345円274円217円.py.dot" "b/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円264円243円344円273円273円351円223円276円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..ff9d4ad --- /dev/null +++ "b/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円264円243円344円273円273円351円223円276円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,13 @@ +digraph "classes_茵?筝阪??罔≦??-茣d算??丈─綣?.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"茵?筝阪??罔≦??-茣d算??丈─綣?.Event" [color="black", fontcolor="black", label=<{event|name
|}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-茣d算??丈─綣?.MainWindow" [color="black", fontcolor="black", label=<{mainwindow|
|handle_close(event)
handle_default(event)
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-茣d算??丈─綣?.MsgText" [color="black", fontcolor="black", label=<{msgtext|
|handle_down(event)
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-茣d算??丈─綣?.SendDialog" [color="black", fontcolor="black", label=<{senddialog|
|handle_paint(event)
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-茣d算??丈─綣?.Widget" [color="black", fontcolor="black", label=<{widget|parent : NoneType
|handle(event)
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-茣d算??丈─綣?.MainWindow" -> "茵?筝阪??罔≦??-茣d算??丈─綣?.Widget" [arrowhead="empty", arrowtail="none"]; +"茵?筝阪??罔≦??-茣d算??丈─綣?.MsgText" -> "茵?筝阪??罔≦??-茣d算??丈─綣?.Widget" [arrowhead="empty", arrowtail="none"]; +"茵?筝阪??罔≦??-茣d算??丈─綣?.SendDialog" -> "茵?筝阪??罔≦??-茣d算??丈─綣?.Widget" [arrowhead="empty", arrowtail="none"]; +} diff --git "a/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円207円346円273円244円345円231円250円346円250円241円345円274円217円.py.dot" "b/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円207円346円273円244円345円231円250円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..8a72ed5 --- /dev/null +++ "b/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円207円346円273円244円345円231円250円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,21 @@ +digraph "classes_茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.AndCriteria" [color="black", fontcolor="black", label=<{andcriteria|criteria
criteria_other
|meet_criteria(persons): list
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.Criteria" [color="black", fontcolor="black", label=<{criteria|
|meet_criteria(persons): list
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.CriteriaFemale" [color="black", fontcolor="black", label=<{criteriafemale|
|meet_criteria(persons): list
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.CriteriaMale" [color="black", fontcolor="black", label=<{criteriamale|
|meet_criteria(persons): list
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.CriteriaSingle" [color="black", fontcolor="black", label=<{criteriasingle|
|meet_criteria(persons): list
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.OrCriteria" [color="black", fontcolor="black", label=<{orcriteria|criteria
criteria_other
|meet_criteria(persons): list
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.Person" [color="black", fontcolor="black", label=<{person|marital_status
name
sex
|}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.AndCriteria" -> "茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.Criteria" [arrowhead="empty", arrowtail="none"]; +"茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.CriteriaFemale" -> "茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.Criteria" [arrowhead="empty", arrowtail="none"]; +"茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.CriteriaMale" -> "茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.Criteria" [arrowhead="empty", arrowtail="none"]; +"茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.CriteriaSingle" -> "茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.Criteria" [arrowhead="empty", arrowtail="none"]; +"茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.OrCriteria" -> "茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.Criteria" [arrowhead="empty", arrowtail="none"]; +"茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.Criteria" -> "茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.AndCriteria" [arrowhead="odiamond", arrowtail="none", fontcolor="green", label="criteria", style="solid"]; +"茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.Criteria" -> "茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.AndCriteria" [arrowhead="odiamond", arrowtail="none", fontcolor="green", label="criteria_other", style="solid"]; +"茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.Criteria" -> "茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.OrCriteria" [arrowhead="odiamond", arrowtail="none", fontcolor="green", label="criteria", style="solid"]; +"茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.Criteria" -> "茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.OrCriteria" [arrowhead="odiamond", arrowtail="none", fontcolor="green", label="criteria_other", style="solid"]; +} diff --git "a/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円255円344円273円243円345円231円250円346円250円241円345円274円217円-344円275円277円347円224円250円347円261円273円.py.dot" "b/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円255円344円273円243円345円231円250円346円250円241円345円274円217円-344円275円277円347円224円250円347円261円273円.py.dot" new file mode 100644 index 0000000..d86adad --- /dev/null +++ "b/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円255円344円273円243円345円231円250円346円250円241円345円274円217円-344円275円277円347円224円250円347円261円273円.py.dot" @@ -0,0 +1,6 @@ +digraph "classes_茵?筝阪??罔≦??-菴TEL撮???罔≦??-篏睡??瓜.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"茵?筝阪??罔≦??-菴TEL撮???罔≦??-篏睡??瓜.AccountIterator" [color="black", fontcolor="black", label=<{accountiterator|accounts
index : int
|}>, shape="record", style="solid"]; +} diff --git "a/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円255円344円273円243円345円231円250円346円250円241円345円274円217円.py.dot" "b/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円255円344円273円243円345円231円250円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..1d2e602 --- /dev/null +++ "b/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円255円344円273円243円345円231円250円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,11 @@ +digraph "classes_茵?筝阪??罔≦??-菴TEL撮???罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"茵?筝阪??罔≦??-菴TEL撮???罔≦??.Aggregate" [color="black", fontcolor="black", label=<{aggregate|
|iterator()
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-菴TEL撮???罔≦??.ConcreteAggregate" [color="black", fontcolor="black", label=<{concreteaggregate|alist
|iterator()
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-菴TEL撮???罔≦??.ConcreteIterator" [color="black", fontcolor="black", label=<{concreteiterator|alist
|hasNext()
next()
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-菴TEL撮???罔≦??.Iterator" [color="black", fontcolor="black", label=<{iterator|
|hasNext()
next()
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-菴TEL撮???罔≦??.ConcreteAggregate" -> "茵?筝阪??罔≦??-菴TEL撮???罔≦??.Aggregate" [arrowhead="empty", arrowtail="none"]; +"茵?筝阪??罔≦??-菴TEL撮???罔≦??.ConcreteIterator" -> "茵?筝阪??罔≦??-菴TEL撮???罔≦??.Iterator" [arrowhead="empty", arrowtail="none"]; +} diff --git "a/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円255円344円273円243円345円231円250円346円250円241円345円274円2173円.py.dot" "b/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円255円344円273円243円345円231円250円346円250円241円345円274円2173円.py.dot" new file mode 100644 index 0000000..8e6e984 --- /dev/null +++ "b/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円255円344円273円243円345円231円250円346円250円241円345円274円2173円.py.dot" @@ -0,0 +1,5 @@ +digraph "classes_茵?筝阪??罔≦??-菴TEL撮???罔≦??3.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +} diff --git "a/dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-344円272円253円345円205円203円346円250円241円345円274円217円-345円205円203円347円261円273円.py.dot" "b/dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-344円272円253円345円205円203円346円250円241円345円274円217円-345円205円203円347円261円273円.py.dot" new file mode 100644 index 0000000..752a6dc --- /dev/null +++ "b/dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-344円272円253円345円205円203円346円250円241円345円274円217円-345円205円203円347円261円273円.py.dot" @@ -0,0 +1,7 @@ +digraph "classes_???綮阪??罔≦??-篋????罔≦??-???膠?.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"???綮阪??罔≦??-篋????罔≦??-???膠?.A" [color="black", fontcolor="black", label=<{a|
|}>, shape="record", style="solid"]; +"???綮阪??罔≦??-篋????罔≦??-???膠?.FlyweightMetaClass" [color="black", fontcolor="black", label=<{flyweightmetaclass|
|}>, shape="record", style="solid"]; +} diff --git "a/dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-344円272円253円345円205円203円346円250円241円345円274円217円-350円243円205円351円245円260円345円231円250円347円211円210円346円234円254円.py.dot" "b/dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-344円272円253円345円205円203円346円250円241円345円274円217円-350円243円205円351円245円260円345円231円250円347円211円210円346円234円254円.py.dot" new file mode 100644 index 0000000..b9f25cb --- /dev/null +++ "b/dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-344円272円253円345円205円203円346円250円241円345円274円217円-350円243円205円351円245円260円345円231円250円347円211円210円346円234円254円.py.dot" @@ -0,0 +1,6 @@ +digraph "classes_???綮阪??罔≦??-篋????罔≦??-茖?薀医???????.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"???綮阪??罔≦??-篋????罔≦??-茖?薀医???????.A" [color="black", fontcolor="black", label=<{a|identity
|eat()
}>, shape="record", style="solid"]; +} diff --git "a/dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-344円272円253円345円205円203円346円250円241円345円274円217円.py.dot" "b/dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-344円272円253円345円205円203円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..dbd24bd --- /dev/null +++ "b/dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-344円272円253円345円205円203円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,6 @@ +digraph "classes_???綮阪??罔≦??-篋????罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"???綮阪??罔≦??-篋????罔≦??.A" [color="black", fontcolor="black", label=<{a|identity
pool : dict
|eat()
}>, shape="record", style="solid"]; +} diff --git "a/dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円-345円205円203円347円261円273円.py.dot" "b/dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円-345円205円203円347円261円273円.py.dot" new file mode 100644 index 0000000..855806a --- /dev/null +++ "b/dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円-345円205円203円347円261円273円.py.dot" @@ -0,0 +1,7 @@ +digraph "classes_???綮阪??罔≦??-???箴?罔≦??-???膠?.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"???綮阪??罔≦??-???箴?罔≦??-???膠?.A" [color="black", fontcolor="black", label=<{a|identity
|eat()
}>, shape="record", style="solid"]; +"???綮阪??罔≦??-???箴?罔≦??-???膠?.Singleton" [color="black", fontcolor="black", label=<{singleton|
|}>, shape="record", style="solid"]; +} diff --git "a/dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円-350円243円205円351円245円260円345円231円250円.py.dot" "b/dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円-350円243円205円351円245円260円345円231円250円.py.dot" new file mode 100644 index 0000000..48c4d9b --- /dev/null +++ "b/dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円-350円243円205円351円245円260円345円231円250円.py.dot" @@ -0,0 +1,6 @@ +digraph "classes_???綮阪??罔≦??-???箴?罔≦??-茖?薀医??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"???綮阪??罔≦??-???箴?罔≦??-茖?薀医??.A" [color="black", fontcolor="black", label=<{a|identity
|eat()
}>, shape="record", style="solid"]; +} diff --git "a/dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円-351円207円215円345円206円231円new344円275円206円344円270円215円346円257円217円346円254円241円346円211円247円350円241円214円init346円226円271円345円274円217円.py.dot" "b/dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円-351円207円215円345円206円231円new344円275円206円344円270円215円346円257円217円346円254円241円346円211円247円350円241円214円init346円226円271円345円274円217円.py.dot" new file mode 100644 index 0000000..6013495 --- /dev/null +++ "b/dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円-351円207円215円345円206円231円new344円275円206円344円270円215円346円257円217円346円254円241円346円211円247円350円241円214円init346円226円271円345円274円217円.py.dot" @@ -0,0 +1,6 @@ +digraph "classes_???綮阪??罔≦??-???箴?罔≦??-??????new篏?筝?罸閩≧?ц??init??劫??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"???綮阪??罔≦??-???箴?罔≦??-??????new篏?筝?罸閩≧?ц??init??劫??.A" [color="black", fontcolor="black", label=<{a|identity
|eat()
}>, shape="record", style="solid"]; +} diff --git "a/dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円.py.dot" "b/dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..59f1628 --- /dev/null +++ "b/dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,6 @@ +digraph "classes_???綮阪??罔≦??-???箴?罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"???綮阪??罔≦??-???箴?罔≦??.A" [color="black", fontcolor="black", label=<{a|identity
|eat()
}>, shape="record", style="solid"]; +} diff --git "a/dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円216円237円345円236円213円346円250円241円345円274円217円.py.dot" "b/dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円216円237円345円236円213円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..f28aec4 --- /dev/null +++ "b/dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円216円237円345円236円213円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,7 @@ +digraph "classes_???綮阪??罔≦??-??????罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"???綮阪??罔≦??-??????罔≦??.Book" [color="black", fontcolor="black", label=<{book|authors
name
price
|}>, shape="record", style="solid"]; +"???綮阪??罔≦??-??????罔≦??.Prototype" [color="black", fontcolor="black", label=<{prototype|objects : dict
|clone(identifier)
register(identifier, obj)
unregister(identifier)
}>, shape="record", style="solid"]; +} diff --git "a/dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円257円271円350円261円241円346円261円240円346円250円241円345円274円217円.py.dot" "b/dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円257円271円350円261円241円346円261円240円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..1b5f03a --- /dev/null +++ "b/dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円257円271円350円261円241円346円261円240円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,6 @@ +digraph "classes_???綮阪??罔≦??-絲壕院羆?罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"???綮阪??罔≦??-絲壕院羆?罔≦??.QueueObject" [color="black", fontcolor="black", label=<{queueobject|object : NoneType
|}>, shape="record", style="solid"]; +} diff --git "a/dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円273円272円351円200円240円350円200円205円346円250円241円345円274円217円.py.dot" "b/dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円273円272円351円200円240円350円200円205円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..7ed3a2e --- /dev/null +++ "b/dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円273円272円351円200円240円350円200円205円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,16 @@ +digraph "classes_???綮阪??罔≦??-綮咲?????罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"???綮阪??罔≦??-綮咲?????罔≦??.AbsBuilder" [color="black", fontcolor="black", label=<{absbuilder|building : NoneType
|build_floor()
build_size()
new_building()
}>, shape="record", style="solid"]; +"???綮阪??罔≦??-綮咲?????罔≦??.Building" [color="black", fontcolor="black", label=<{building|floor : str, NoneType
size : str, NoneType
|}>, shape="record", style="solid"]; +"???綮阪??罔≦??-綮咲?????罔≦??.Client" [color="black", fontcolor="black", label=<{client|
|build(build_type)
}>, shape="record", style="solid"]; +"???綮阪??罔≦??-綮咲?????罔≦??.Director" [color="black", fontcolor="black", label=<{director|builder : NoneType
|construct_building()
get_building()
}>, shape="record", style="solid"]; +"???綮阪??罔≦??-綮咲?????罔≦??.FlatBuilder" [color="black", fontcolor="black", label=<{flatbuilder|
|build_floor()
build_size()
}>, shape="record", style="solid"]; +"???綮阪??罔≦??-綮咲?????罔≦??.HouseBuilder" [color="black", fontcolor="black", label=<{housebuilder|
|build_floor()
build_size()
}>, shape="record", style="solid"]; +"???綮阪??罔≦??-綮咲?????罔≦??.FlatBuilder" -> "???綮阪??罔≦??-綮咲?????罔≦??.AbsBuilder" [arrowhead="empty", arrowtail="none"]; +"???綮阪??罔≦??-綮咲?????罔≦??.HouseBuilder" -> "???綮阪??罔≦??-綮咲?????罔≦??.AbsBuilder" [arrowhead="empty", arrowtail="none"]; +"???綮阪??罔≦??-綮咲?????罔≦??.Building" -> "???綮阪??罔≦??-綮咲?????罔≦??.AbsBuilder" [arrowhead="diamond", arrowtail="none", fontcolor="green", label="building", style="solid"]; +"???綮阪??罔≦??-綮咲?????罔≦??.FlatBuilder" -> "???綮阪??罔≦??-綮咲?????罔≦??.Director" [arrowhead="odiamond", arrowtail="none", fontcolor="green", label="builder", style="solid"]; +"???綮阪??罔≦??-綮咲?????罔≦??.HouseBuilder" -> "???綮阪??罔≦??-綮咲?????罔≦??.Director" [arrowhead="odiamond", arrowtail="none", fontcolor="green", label="builder", style="solid"]; +} diff --git "a/dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-346円212円275円350円261円241円345円267円245円345円216円202円346円250円241円345円274円217円.py.dot" "b/dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-346円212円275円350円261円241円345円267円245円345円216円202円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..bb85f70 --- /dev/null +++ "b/dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-346円212円275円350円261円241円345円267円245円345円216円202円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,12 @@ +digraph "classes_???綮阪??罔≦??-??処院綏ュ??罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"???綮阪??罔≦??-??処院綏ュ??罔≦??.Apple5" [color="black", fontcolor="black", label=<{apple5|phone_name : str
|send_msg()
}>, shape="record", style="solid"]; +"???綮阪??罔≦??-??処院綏ュ??罔≦??.Apple6" [color="black", fontcolor="black", label=<{apple6|phone_name : str
|send_msg()
}>, shape="record", style="solid"]; +"???綮阪??罔≦??-??処院綏ュ??罔≦??.AppleFactory" [color="black", fontcolor="black", label=<{applefactory|
|get_phone(phone_type)
}>, shape="record", style="solid"]; +"???綮阪??罔≦??-??処院綏ュ??罔≦??.FactoryProducer" [color="black", fontcolor="black", label=<{factoryproducer|
|get_factory(factory_name)
}>, shape="record", style="solid"]; +"???綮阪??罔≦??-??処院綏ュ??罔≦??.XiaomFactory" [color="black", fontcolor="black", label=<{xiaomfactory|
|get_phone(phone_type)
}>, shape="record", style="solid"]; +"???綮阪??罔≦??-??処院綏ュ??罔≦??.Xiaomi5" [color="black", fontcolor="black", label=<{xiaomi5|phone_name : str
|send_msg()
}>, shape="record", style="solid"]; +"???綮阪??罔≦??-??処院綏ュ??罔≦??.Xiaomi6" [color="black", fontcolor="black", label=<{xiaomi6|phone_name : str
|send_msg()
}>, shape="record", style="solid"]; +} diff --git "a/dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-347円256円200円345円215円225円345円267円245円345円216円202円346円250円241円345円274円217円.py.dot" "b/dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-347円256円200円345円215円225円345円267円245円345円216円202円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..e6f4717 --- /dev/null +++ "b/dot/classes_345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-347円256円200円345円215円225円345円267円245円345円216円202円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,7 @@ +digraph "classes_???綮阪??罔≦??-膊????綏ュ??罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"???綮阪??罔≦??-膊????綏ュ??罔≦??.Xiaomi5" [color="black", fontcolor="black", label=<{xiaomi5|phone_name : str
|send_msg()
}>, shape="record", style="solid"]; +"???綮阪??罔≦??-膊????綏ュ??罔≦??.Xiaomi6" [color="black", fontcolor="black", label=<{xiaomi6|phone_name : str
|send_msg()
}>, shape="record", style="solid"]; +} diff --git "a/dot/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-mvc346円250円241円345円274円217円.py.dot" "b/dot/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-mvc346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..cfb48f7 --- /dev/null +++ "b/dot/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-mvc346円250円241円345円274円217円.py.dot" @@ -0,0 +1,10 @@ +digraph "classes_膸???????罔≦??-mvc罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"膸???????罔≦??-mvc罔≦??.QuoteModel" [color="black", fontcolor="black", label=<{quotemodel|
|get_quote(n)
}>, shape="record", style="solid"]; +"膸???????罔≦??-mvc罔≦??.QuoteTerminalController" [color="black", fontcolor="black", label=<{quoteterminalcontroller|model
view
|run()
}>, shape="record", style="solid"]; +"膸???????罔≦??-mvc罔≦??.QuoteTerminalView" [color="black", fontcolor="black", label=<{quoteterminalview|
|error(msg)
select_quote()
show(quote)
}>, shape="record", style="solid"]; +"膸???????罔≦??-mvc罔≦??.QuoteModel" -> "膸???????罔≦??-mvc罔≦??.QuoteTerminalController" [arrowhead="diamond", arrowtail="none", fontcolor="green", label="model", style="solid"]; +"膸???????罔≦??-mvc罔≦??.QuoteTerminalView" -> "膸???????罔≦??-mvc罔≦??.QuoteTerminalController" [arrowhead="diamond", arrowtail="none", fontcolor="green", label="view", style="solid"]; +} diff --git "a/dot/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-344円273円243円347円220円206円346円250円241円345円274円217円.py.dot" "b/dot/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-344円273円243円347円220円206円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..5b4d5a8 --- /dev/null +++ "b/dot/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-344円273円243円347円220円206円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,8 @@ +digraph "classes_膸???????罔≦??-篁g??罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"膸???????罔≦??-篁g??罔≦??.Info" [color="black", fontcolor="black", label=<{info|protected
secret : str
|add(user)
read()
}>, shape="record", style="solid"]; +"膸???????罔≦??-篁g??罔≦??.SensitiveInfo" [color="black", fontcolor="black", label=<{sensitiveinfo|users : list
|add(user)
read()
}>, shape="record", style="solid"]; +"膸???????罔≦??-篁g??罔≦??.SensitiveInfo" -> "膸???????罔≦??-篁g??罔≦??.Info" [arrowhead="diamond", arrowtail="none", fontcolor="green", label="protected", style="solid"]; +} diff --git "a/dot/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-345円244円226円350円247円202円346円250円241円345円274円217円.py.dot" "b/dot/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-345円244円226円350円247円202円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..7ad975d --- /dev/null +++ "b/dot/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-345円244円226円350円247円202円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,12 @@ +digraph "classes_膸???????罔≦??-紊?茹?罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"膸???????罔≦??-紊?茹?罔≦??.A" [color="black", fontcolor="black", label=<{a|
|jump()
run()
}>, shape="record", style="solid"]; +"膸???????罔≦??-紊?茹?罔≦??.B" [color="black", fontcolor="black", label=<{b|
|jump()
run()
}>, shape="record", style="solid"]; +"膸???????罔≦??-紊?茹?罔≦??.C" [color="black", fontcolor="black", label=<{c|
|jump()
run()
}>, shape="record", style="solid"]; +"膸???????罔≦??-紊?茹?罔≦??.Facade" [color="black", fontcolor="black", label=<{facade|a
b
c
|jump()
run()
}>, shape="record", style="solid"]; +"膸???????罔≦??-紊?茹?罔≦??.A" -> "膸???????罔≦??-紊?茹?罔≦??.Facade" [arrowhead="diamond", arrowtail="none", fontcolor="green", label="a", style="solid"]; +"膸???????罔≦??-紊?茹?罔≦??.B" -> "膸???????罔≦??-紊?茹?罔≦??.Facade" [arrowhead="diamond", arrowtail="none", fontcolor="green", label="b", style="solid"]; +"膸???????罔≦??-紊?茹?罔≦??.C" -> "膸???????罔≦??-紊?茹?罔≦??.Facade" [arrowhead="diamond", arrowtail="none", fontcolor="green", label="c", style="solid"]; +} diff --git "a/dot/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-346円241円245円346円216円245円346円250円241円345円274円217円.py.dot" "b/dot/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-346円241円245円346円216円245円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..c5041dd --- /dev/null +++ "b/dot/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-346円241円245円346円216円245円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,9 @@ +digraph "classes_膸???????罔≦??-罅ユ・罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"膸???????罔≦??-罅ユ・罔≦??.A" [color="black", fontcolor="black", label=<{a|
|run(name)
}>, shape="record", style="solid"]; +"膸???????罔≦??-罅ユ・罔≦??.B" [color="black", fontcolor="black", label=<{b|
|run(name)
}>, shape="record", style="solid"]; +"膸???????罔≦??-罅ユ・罔≦??.Bridge" [color="black", fontcolor="black", label=<{bridge|ager : str
classname
|bridge_run()
}>, shape="record", style="solid"]; +"膸???????罔≦??-罅ユ・罔≦??.B" -> "膸???????罔≦??-罅ユ・罔≦??.Bridge" [arrowhead="diamond", arrowtail="none", fontcolor="green", label="classname", style="solid"]; +} diff --git "a/dot/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-347円273円204円345円220円210円346円250円241円345円274円217円.py.dot" "b/dot/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-347円273円204円345円220円210円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..50df8e8 --- /dev/null +++ "b/dot/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-347円273円204円345円220円210円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,12 @@ +digraph "classes_膸???????罔≦??-膸????罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"膸???????罔≦??-膸????罔≦??.Company" [color="black", fontcolor="black", label=<{company|name
name : str
|add(company)
display(depth)
line_of_duty()
remove(company)
}>, shape="record", style="solid"]; +"膸???????罔≦??-膸????罔≦??.ConcreteCompany" [color="black", fontcolor="black", label=<{concretecompany|childrencompany : NoneType
childrenCompany : list
|add(company)
display(depth)
line_of_duty()
remove(company)
}>, shape="record", style="solid"]; +"膸???????罔≦??-膸????罔≦??.FinanceDepartment" [color="black", fontcolor="black", label=<{financedepartment|
|display(depth)
line_of_duty()
}>, shape="record", style="solid"]; +"膸???????罔≦??-膸????罔≦??.HRDepartment" [color="black", fontcolor="black", label=<{hrdepartment|
|display(depth)
line_of_duty()
}>, shape="record", style="solid"]; +"膸???????罔≦??-膸????罔≦??.ConcreteCompany" -> "膸???????罔≦??-膸????罔≦??.Company" [arrowhead="empty", arrowtail="none"]; +"膸???????罔≦??-膸????罔≦??.FinanceDepartment" -> "膸???????罔≦??-膸????罔≦??.Company" [arrowhead="empty", arrowtail="none"]; +"膸???????罔≦??-膸????罔≦??.HRDepartment" -> "膸???????罔≦??-膸????罔≦??.Company" [arrowhead="empty", arrowtail="none"]; +} diff --git "a/dot/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-350円243円205円351円245円260円350円200円205円346円250円241円345円274円217円-345円207円275円346円225円260円350円243円205円351円245円260円345円231円250円.py.dot" "b/dot/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-350円243円205円351円245円260円350円200円205円346円250円241円345円274円217円-345円207円275円346円225円260円350円243円205円351円245円260円345円231円250円.py.dot" new file mode 100644 index 0000000..d01087d --- /dev/null +++ "b/dot/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-350円243円205円351円245円260円350円200円205円346円250円241円345円274円217円-345円207円275円346円225円260円350円243円205円351円245円260円345円231円250円.py.dot" @@ -0,0 +1,5 @@ +digraph "classes_膸???????罔≦??-茖?薀域??罔≦??-??醇?域??薀医??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +} diff --git "a/dot/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-350円243円205円351円245円260円350円200円205円346円250円241円345円274円217円-347円261円273円350円243円205円351円245円260円345円231円250円.py.dot" "b/dot/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-350円243円205円351円245円260円350円200円205円346円250円241円345円274円217円-347円261円273円350円243円205円351円245円260円345円231円250円.py.dot" new file mode 100644 index 0000000..5dd389a --- /dev/null +++ "b/dot/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-350円243円205円351円245円260円350円200円205円346円250円241円345円274円217円-347円261円273円350円243円205円351円245円260円345円231円250円.py.dot" @@ -0,0 +1,7 @@ +digraph "classes_膸???????罔≦??-茖?薀域??罔≦??-膠肢??薀医??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"膸???????罔≦??-茖?薀域??罔≦??-膠肢??薀医??.Profiled" [color="black", fontcolor="black", label=<{profiled|ncalls : int
|}>, shape="record", style="solid"]; +"膸???????罔≦??-茖?薀域??罔≦??-膠肢??薀医??.Spam" [color="black", fontcolor="black", label=<{spam|
|bar(x)
}>, shape="record", style="solid"]; +} diff --git "a/dot/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-350円243円205円351円245円260円350円200円205円346円250円241円345円274円217円.py.dot" "b/dot/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-350円243円205円351円245円260円350円200円205円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..1caaf49 --- /dev/null +++ "b/dot/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-350円243円205円351円245円260円350円200円205円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,7 @@ +digraph "classes_膸???????罔≦??-茖?薀域??罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"膸???????罔≦??-茖?薀域??罔≦??.Foo" [color="black", fontcolor="black", label=<{foo|
|f1()
f2()
}>, shape="record", style="solid"]; +"膸???????罔≦??-茖?薀域??罔≦??.Foo_decorator" [color="black", fontcolor="black", label=<{foo_decorator|
|f1()
}>, shape="record", style="solid"]; +} diff --git "a/dot/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-351円200円202円351円205円215円345円231円250円346円250円241円345円274円217円.py.dot" "b/dot/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-351円200円202円351円205円215円345円231円250円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..6744b9b --- /dev/null +++ "b/dot/classes_347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-351円200円202円351円205円215円345円231円250円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,9 @@ +digraph "classes_膸???????罔≦??-?????????罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"膸???????罔≦??-?????????罔≦??.Adapter" [color="black", fontcolor="black", label=<{adapter|
|run()
speak()
}>, shape="record", style="solid"]; +"膸???????罔≦??-?????????罔≦??.Cat" [color="black", fontcolor="black", label=<{cat|name
|cat_run()
miaomiao()
}>, shape="record", style="solid"]; +"膸???????罔≦??-?????????罔≦??.Dog" [color="black", fontcolor="black", label=<{dog|name
|dog_run()
wangwang()
}>, shape="record", style="solid"]; +"膸???????罔≦??-?????????罔≦??.Sheep" [color="black", fontcolor="black", label=<{sheep|name
|miemie()
sheet_run()
}>, shape="record", style="solid"]; +} diff --git "a/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-344円270円255円344円273円213円350円200円205円346円250円241円345円274円217円.py.dot" "b/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-344円270円255円344円273円213円350円200円205円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..e877f86 --- /dev/null +++ "b/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-344円270円255円344円273円213円350円200円205円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,7 @@ +digraph "classes_茵?筝阪??罔≦??-筝TEL?????罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"茵?筝阪??罔≦??-筝TEL?????罔≦??.ChatRoom" [color="black", fontcolor="black", label=<{chatroom|
|show_message(user, msg)
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-筝TEL?????罔≦??.User" [color="black", fontcolor="black", label=<{user|name
|send_msg(msg)
}>, shape="record", style="solid"]; +} diff --git "a/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円217円221円345円270円203円350円256円242円351円230円205円346円250円241円345円274円217円.py.dot" "b/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円217円221円345円270円203円350円256円242円351円230円205円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..74b699c --- /dev/null +++ "b/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円217円221円345円270円203円350円256円242円351円230円205円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,8 @@ +digraph "classes_茵?筝阪??罔≦??-???絽?莅∫??罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"茵?筝阪??罔≦??-???絽?莅∫??罔≦??.Event" [color="black", fontcolor="black", label=<{event|client_list : dict
|listen(key, fn)
remove(key, fn)
trigger()
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-???絽?莅∫??罔≦??.SalesOffice" [color="black", fontcolor="black", label=<{salesoffice|
|}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-???絽?莅∫??罔≦??.SalesOffice" -> "茵?筝阪??罔≦??-???絽?莅∫??罔≦??.Event" [arrowhead="empty", arrowtail="none"]; +} diff --git "a/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円221円275円344円273円244円346円250円241円345円274円217円.py.dot" "b/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円221円275円344円273円244円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..e030efc --- /dev/null +++ "b/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円221円275円344円273円244円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,8 @@ +digraph "classes_茵?筝阪??罔≦??-??巡擦罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"茵?筝阪??罔≦??-??巡擦罔≦??.CreateFile" [color="black", fontcolor="black", label=<{createfile|path
txt : str
|execute()
undo()
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-??巡擦罔≦??.ReadFile" [color="black", fontcolor="black", label=<{readfile|path
|execute()
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-??巡擦罔≦??.RenameFile" [color="black", fontcolor="black", label=<{renamefile|dest
src
|execute()
undo()
}>, shape="record", style="solid"]; +} diff --git "a/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円244円207円345円277円230円345円275円225円346円250円241円345円274円217円.py.dot" "b/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円244円207円345円277円230円345円275円225円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..52d5509 --- /dev/null +++ "b/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円244円207円345円277円230円345円275円225円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,8 @@ +digraph "classes_茵?筝阪??罔≦??-紊?綽?綵?罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"茵?筝阪??罔≦??-紊?綽?綵?罔≦??.Caretaker" [color="black", fontcolor="black", label=<{caretaker|memento
|}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-紊?綽?綵?罔≦??.Memento" [color="black", fontcolor="black", label=<{memento|state
|}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-紊?綽?綵?罔≦??.Originator" [color="black", fontcolor="black", label=<{originator|state : str
|create_memento()
set_memento(memento)
show()
}>, shape="record", style="solid"]; +} diff --git "a/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円273円266円350円277円237円350円256円241円347円256円227円347円274円223円345円255円230円346円250円241円345円274円217円.py.dot" "b/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円273円266円350円277円237円350円256円241円347円256円227円347円274円223円345円255円230円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..7356786 --- /dev/null +++ "b/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円273円266円350円277円237円350円256円241円347円256円227円347円274円223円345円255円230円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,8 @@ +digraph "classes_茵?筝阪??罔≦??-綮区??莅∞??膽?絖?罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"茵?筝阪??罔≦??-綮区??莅∞??膽?絖?罔≦??.FunctionResultCacher" [color="black", fontcolor="black", label=<{functionresultcacher|func_result_dict : dict
|cached_function_result_for_a_time(cache_time: float)
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-綮区??莅∞??膽?絖?罔≦??.cached_class_property" [color="black", fontcolor="black", label=<{cached_class_property|func
|}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-綮区??莅∞??膽?絖?罔≦??.cached_instance_property" [color="black", fontcolor="black", label=<{cached_instance_property|func
|}>, shape="record", style="solid"]; +} diff --git "a/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-346円250円241円346円235円277円346円250円241円345円274円217円.py.dot" "b/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-346円250円241円346円235円277円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..4491c76 --- /dev/null +++ "b/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-346円250円241円346円235円277円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,8 @@ +digraph "classes_茵?筝阪??罔≦??-罔≧?炊─綣?.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"茵?筝阪??罔≦??-罔≧?炊─綣?.AbstractClass" [color="black", fontcolor="black", label=<{abstractclass|
|operation1()
operation2()
operation3()
template_method()
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-罔≧?炊─綣?.ConcreteClass" [color="black", fontcolor="black", label=<{concreteclass|
|operation1()
operation2()
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-罔≧?炊─綣?.ConcreteClass" -> "茵?筝阪??罔≦??-罔≧?炊─綣?.AbstractClass" [arrowhead="empty", arrowtail="none"]; +} diff --git "a/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-347円212円266円346円200円201円346円250円241円345円274円217円.py.dot" "b/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-347円212円266円346円200円201円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..8fe90b0 --- /dev/null +++ "b/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-347円212円266円346円200円201円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,14 @@ +digraph "classes_茵?筝阪??罔≦??-??倶??罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"茵?筝阪??罔≦??-??倶??罔≦??.AmState" [color="black", fontcolor="black", label=<{amstate|name : str
pos : int
radio
stations : list
|toggle_amfm()
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-??倶??罔≦??.FmState" [color="black", fontcolor="black", label=<{fmstate|name : str
pos : int
radio
stations : list
|toggle_amfm()
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-??倶??罔≦??.Radio" [color="black", fontcolor="black", label=<{radio|amstate
fmstate
state
|scan()
toggle_amfm()
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-??倶??罔≦??.State" [color="black", fontcolor="black", label=<{state|pos : int
|scan()
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-??倶??罔≦??.AmState" -> "茵?筝阪??罔≦??-??倶??罔≦??.State" [arrowhead="empty", arrowtail="none"]; +"茵?筝阪??罔≦??-??倶??罔≦??.FmState" -> "茵?筝阪??罔≦??-??倶??罔≦??.State" [arrowhead="empty", arrowtail="none"]; +"茵?筝阪??罔≦??-??倶??罔≦??.AmState" -> "茵?筝阪??罔≦??-??倶??罔≦??.Radio" [arrowhead="diamond", arrowtail="none", fontcolor="green", label="amstate", style="solid"]; +"茵?筝阪??罔≦??-??倶??罔≦??.AmState" -> "茵?筝阪??罔≦??-??倶??罔≦??.Radio" [arrowhead="diamond", arrowtail="none", fontcolor="green", label="state", style="solid"]; +"茵?筝阪??罔≦??-??倶??罔≦??.FmState" -> "茵?筝阪??罔≦??-??倶??罔≦??.Radio" [arrowhead="diamond", arrowtail="none", fontcolor="green", label="fmstate", style="solid"]; +} diff --git "a/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-347円231円273円350円256円260円346円250円241円345円274円217円.py.dot" "b/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-347円231円273円350円256円260円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..3b56248 --- /dev/null +++ "b/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-347円231円273円350円256円260円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,9 @@ +digraph "classes_茵?筝阪??罔≦??-??肢佖罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"茵?筝阪??罔≦??-??肢佖罔≦??.BaseRegisteredClass" [color="black", fontcolor="black", label=<{baseregisteredclass|
|}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-??肢佖罔≦??.ClassRegistree" [color="black", fontcolor="black", label=<{classregistree|
|}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-??肢佖罔≦??.RegistryHolder" [color="black", fontcolor="black", label=<{registryholder|registry : dict
|get_registry()
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-??肢佖罔≦??.ClassRegistree" -> "茵?筝阪??罔≦??-??肢佖罔≦??.BaseRegisteredClass" [arrowhead="empty", arrowtail="none"]; +} diff --git "a/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-347円255円226円347円225円245円346円250円241円345円274円217円.py.dot" "b/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-347円255円226円347円225円245円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..2f34025 --- /dev/null +++ "b/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-347円255円226円347円225円245円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,11 @@ +digraph "classes_茵?筝阪??罔≦??-膈???ユ─綣?.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"茵?筝阪??罔≦??-膈???ユ─綣?.FaultStrategy" [color="black", fontcolor="black", label=<{faultstrategy|
|process()
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-膈???ユ─綣?.NormalStrategy" [color="black", fontcolor="black", label=<{normalstrategy|
|process()
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-膈???ユ─綣?.Park" [color="black", fontcolor="black", label=<{park|
|geoProcess()
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-膈???ユ─綣?.Strategy" [color="black", fontcolor="black", label=<{strategy|
|process()
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-膈???ユ─綣?.FaultStrategy" -> "茵?筝阪??罔≦??-膈???ユ─綣?.Strategy" [arrowhead="empty", arrowtail="none"]; +"茵?筝阪??罔≦??-膈???ユ─綣?.NormalStrategy" -> "茵?筝阪??罔≦??-膈???ユ─綣?.Strategy" [arrowhead="empty", arrowtail="none"]; +} diff --git "a/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円247円202円345円257円237円350円200円205円346円250円241円345円274円217円-351円207円215円346円226円260円345円256円236円347円216円260円346円227円245円345円277円227円347円263円273円347円273円237円.py.dot" "b/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円247円202円345円257円237円350円200円205円346円250円241円345円274円217円-351円207円215円346円226円260円345円256円236円347円216円260円346円227円245円345円277円227円347円263円273円347円273円237円.py.dot" new file mode 100644 index 0000000..68b18aa --- /dev/null +++ "b/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円247円202円345円257円237円350円200円205円346円250円241円345円274円217円-351円207円215円346円226円260円345円256円236円347円216円260円346円227円245円345円277円227円347円263円273円347円273円237円.py.dot" @@ -0,0 +1,15 @@ +digraph "classes_茵?筝阪??罔≦??-茹?絲????罔≦??-?????医???ー??ュ??膤紫??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"茵?筝阪??罔≦??-茹?絲????罔≦??-?????医???ー??ュ??膤紫??.AbstractHandler" [color="black", fontcolor="black", label=<{abstracthandler|
|emit(record)
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-茹?絲????罔≦??-?????医???ー??ュ??膤紫??.DingdingHandler" [color="black", fontcolor="black", label=<{dingdinghandler|
|emit(record)
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-茹?絲????罔≦??-?????医???ー??ュ??膤紫??.FileHandler" [color="black", fontcolor="black", label=<{filehandler|
|emit(record)
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-茹?絲????罔≦??-?????医???ー??ュ??膤紫??.Logger" [color="black", fontcolor="black", label=<{logger|handlers : list
name
|add_handler(handler)
log(record: str)
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-茹?絲????罔≦??-?????医???ー??ュ??膤紫??.MailHandler" [color="black", fontcolor="black", label=<{mailhandler|
|emit(record)
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-茹?絲????罔≦??-?????医???ー??ュ??膤紫??.StreamHandler" [color="black", fontcolor="black", label=<{streamhandler|
|emit(record)
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-茹?絲????罔≦??-?????医???ー??ュ??膤紫??.DingdingHandler" -> "茵?筝阪??罔≦??-茹?絲????罔≦??-?????医???ー??ュ??膤紫??.AbstractHandler" [arrowhead="empty", arrowtail="none"]; +"茵?筝阪??罔≦??-茹?絲????罔≦??-?????医???ー??ュ??膤紫??.FileHandler" -> "茵?筝阪??罔≦??-茹?絲????罔≦??-?????医???ー??ュ??膤紫??.AbstractHandler" [arrowhead="empty", arrowtail="none"]; +"茵?筝阪??罔≦??-茹?絲????罔≦??-?????医???ー??ュ??膤紫??.MailHandler" -> "茵?筝阪??罔≦??-茹?絲????罔≦??-?????医???ー??ュ??膤紫??.AbstractHandler" [arrowhead="empty", arrowtail="none"]; +"茵?筝阪??罔≦??-茹?絲????罔≦??-?????医???ー??ュ??膤紫??.StreamHandler" -> "茵?筝阪??罔≦??-茹?絲????罔≦??-?????医???ー??ュ??膤紫??.AbstractHandler" [arrowhead="empty", arrowtail="none"]; +} diff --git "a/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円247円243円351円207円212円345円231円250円346円250円241円345円274円217円.py.dot" "b/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円247円243円351円207円212円345円231円250円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..87c32c2 --- /dev/null +++ "b/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円247円243円351円207円212円345円231円250円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,9 @@ +digraph "classes_茵?筝阪??罔≦??-茹i?????罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"茵?筝阪??罔≦??-茹i?????罔≦??.Expression" [color="black", fontcolor="black", label=<{expression|
|execute(play_key, play_value)
interpret(context)
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-茹i?????罔≦??.NormGuitar" [color="black", fontcolor="black", label=<{normguitar|
|execute(key, value)
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-茹i?????罔≦??.PlayContext" [color="black", fontcolor="black", label=<{playcontext|play_text : NoneType
play_text : str
|}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-茹i?????罔≦??.NormGuitar" -> "茵?筝阪??罔≦??-茹i?????罔≦??.Expression" [arrowhead="empty", arrowtail="none"]; +} diff --git "a/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円256円277円351円227円256円350円200円205円346円250円241円345円274円217円.py.dot" "b/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円256円277円351円227円256円350円200円205円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..5cfdea4 --- /dev/null +++ "b/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円256円277円351円227円256円350円200円205円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,12 @@ +digraph "classes_茵?筝阪??罔≦??-莅翠?勤??罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"茵?筝阪??罔≦??-莅翠?勤??罔≦??.Accounting" [color="black", fontcolor="black", label=<{accounting|duty : str
id : str
|visit(year_data)
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-莅翠?勤??罔≦??.Advisor" [color="black", fontcolor="black", label=<{advisor|duty : str
id : str
|visit(year_data)
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-莅翠?勤??罔≦??.AnalyseData" [color="black", fontcolor="black", label=<{analysedata|datalist : list
|add_data(year_data)
remove_data(year_data)
visit()
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-莅翠?勤??罔≦??.Audit" [color="black", fontcolor="black", label=<{audit|duty : str
id : str
|visit(year_data)
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-莅翠?勤??罔≦??.Finance" [color="black", fontcolor="black", label=<{finance|cost : NoneType
history_cost : NoneType
history_salesvolume : NoneType
salesvolume : NoneType
|accept(visitor)
set_cost(value)
set_history_cost(value)
set_history_salesvolume(value)
set_salesvolume(value)
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-莅翠?勤??罔≦??.Finance_year" [color="black", fontcolor="black", label=<{finance_year|analyst : list
year
|accept()
add_analyst(worker)
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-莅翠?勤??罔≦??.Finance_year" -> "茵?筝阪??罔≦??-莅翠?勤??罔≦??.Finance" [arrowhead="empty", arrowtail="none"]; +} diff --git "a/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円264円243円344円273円273円351円223円276円346円250円241円345円274円217円.py.dot" "b/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円264円243円344円273円273円351円223円276円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..ff9d4ad --- /dev/null +++ "b/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円264円243円344円273円273円351円223円276円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,13 @@ +digraph "classes_茵?筝阪??罔≦??-茣d算??丈─綣?.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"茵?筝阪??罔≦??-茣d算??丈─綣?.Event" [color="black", fontcolor="black", label=<{event|name
|}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-茣d算??丈─綣?.MainWindow" [color="black", fontcolor="black", label=<{mainwindow|
|handle_close(event)
handle_default(event)
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-茣d算??丈─綣?.MsgText" [color="black", fontcolor="black", label=<{msgtext|
|handle_down(event)
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-茣d算??丈─綣?.SendDialog" [color="black", fontcolor="black", label=<{senddialog|
|handle_paint(event)
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-茣d算??丈─綣?.Widget" [color="black", fontcolor="black", label=<{widget|parent : NoneType
|handle(event)
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-茣d算??丈─綣?.MainWindow" -> "茵?筝阪??罔≦??-茣d算??丈─綣?.Widget" [arrowhead="empty", arrowtail="none"]; +"茵?筝阪??罔≦??-茣d算??丈─綣?.MsgText" -> "茵?筝阪??罔≦??-茣d算??丈─綣?.Widget" [arrowhead="empty", arrowtail="none"]; +"茵?筝阪??罔≦??-茣d算??丈─綣?.SendDialog" -> "茵?筝阪??罔≦??-茣d算??丈─綣?.Widget" [arrowhead="empty", arrowtail="none"]; +} diff --git "a/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円207円346円273円244円345円231円250円346円250円241円345円274円217円.py.dot" "b/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円207円346円273円244円345円231円250円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..8a72ed5 --- /dev/null +++ "b/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円207円346円273円244円345円231円250円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,21 @@ +digraph "classes_茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.AndCriteria" [color="black", fontcolor="black", label=<{andcriteria|criteria
criteria_other
|meet_criteria(persons): list
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.Criteria" [color="black", fontcolor="black", label=<{criteria|
|meet_criteria(persons): list
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.CriteriaFemale" [color="black", fontcolor="black", label=<{criteriafemale|
|meet_criteria(persons): list
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.CriteriaMale" [color="black", fontcolor="black", label=<{criteriamale|
|meet_criteria(persons): list
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.CriteriaSingle" [color="black", fontcolor="black", label=<{criteriasingle|
|meet_criteria(persons): list
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.OrCriteria" [color="black", fontcolor="black", label=<{orcriteria|criteria
criteria_other
|meet_criteria(persons): list
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.Person" [color="black", fontcolor="black", label=<{person|marital_status
name
sex
|}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.AndCriteria" -> "茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.Criteria" [arrowhead="empty", arrowtail="none"]; +"茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.CriteriaFemale" -> "茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.Criteria" [arrowhead="empty", arrowtail="none"]; +"茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.CriteriaMale" -> "茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.Criteria" [arrowhead="empty", arrowtail="none"]; +"茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.CriteriaSingle" -> "茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.Criteria" [arrowhead="empty", arrowtail="none"]; +"茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.OrCriteria" -> "茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.Criteria" [arrowhead="empty", arrowtail="none"]; +"茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.Criteria" -> "茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.AndCriteria" [arrowhead="odiamond", arrowtail="none", fontcolor="green", label="criteria", style="solid"]; +"茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.Criteria" -> "茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.AndCriteria" [arrowhead="odiamond", arrowtail="none", fontcolor="green", label="criteria_other", style="solid"]; +"茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.Criteria" -> "茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.OrCriteria" [arrowhead="odiamond", arrowtail="none", fontcolor="green", label="criteria", style="solid"]; +"茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.Criteria" -> "茵?筝阪??罔≦??-菴?羯ゅ??罔≦??.OrCriteria" [arrowhead="odiamond", arrowtail="none", fontcolor="green", label="criteria_other", style="solid"]; +} diff --git "a/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円255円344円273円243円345円231円250円346円250円241円345円274円217円-344円275円277円347円224円250円347円261円273円.py.dot" "b/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円255円344円273円243円345円231円250円346円250円241円345円274円217円-344円275円277円347円224円250円347円261円273円.py.dot" new file mode 100644 index 0000000..d86adad --- /dev/null +++ "b/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円255円344円273円243円345円231円250円346円250円241円345円274円217円-344円275円277円347円224円250円347円261円273円.py.dot" @@ -0,0 +1,6 @@ +digraph "classes_茵?筝阪??罔≦??-菴TEL撮???罔≦??-篏睡??瓜.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"茵?筝阪??罔≦??-菴TEL撮???罔≦??-篏睡??瓜.AccountIterator" [color="black", fontcolor="black", label=<{accountiterator|accounts
index : int
|}>, shape="record", style="solid"]; +} diff --git "a/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円255円344円273円243円345円231円250円346円250円241円345円274円217円.py.dot" "b/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円255円344円273円243円345円231円250円346円250円241円345円274円217円.py.dot" new file mode 100644 index 0000000..1d2e602 --- /dev/null +++ "b/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円255円344円273円243円345円231円250円346円250円241円345円274円217円.py.dot" @@ -0,0 +1,11 @@ +digraph "classes_茵?筝阪??罔≦??-菴TEL撮???罔≦??.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +"茵?筝阪??罔≦??-菴TEL撮???罔≦??.Aggregate" [color="black", fontcolor="black", label=<{aggregate|
|iterator()
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-菴TEL撮???罔≦??.ConcreteAggregate" [color="black", fontcolor="black", label=<{concreteaggregate|alist
|iterator()
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-菴TEL撮???罔≦??.ConcreteIterator" [color="black", fontcolor="black", label=<{concreteiterator|alist
|hasNext()
next()
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-菴TEL撮???罔≦??.Iterator" [color="black", fontcolor="black", label=<{iterator|
|hasNext()
next()
}>, shape="record", style="solid"]; +"茵?筝阪??罔≦??-菴TEL撮???罔≦??.ConcreteAggregate" -> "茵?筝阪??罔≦??-菴TEL撮???罔≦??.Aggregate" [arrowhead="empty", arrowtail="none"]; +"茵?筝阪??罔≦??-菴TEL撮???罔≦??.ConcreteIterator" -> "茵?筝阪??罔≦??-菴TEL撮???罔≦??.Iterator" [arrowhead="empty", arrowtail="none"]; +} diff --git "a/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円255円344円273円243円345円231円250円346円250円241円345円274円2173円.py.dot" "b/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円255円344円273円243円345円231円250円346円250円241円345円274円2173円.py.dot" new file mode 100644 index 0000000..8e6e984 --- /dev/null +++ "b/dot/classes_350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円255円344円273円243円345円231円250円346円250円241円345円274円2173円.py.dot" @@ -0,0 +1,5 @@ +digraph "classes_茵?筝阪??罔≦??-菴TEL撮???罔≦??3.py" { +rankdir=BT +bgcolor="#7e7e7e" +charset="utf-8" +} diff --git "a/py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-344円272円253円345円205円203円346円250円241円345円274円217円-345円205円203円347円261円273円.py" "b/py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-344円272円253円345円205円203円346円250円241円345円274円217円-345円205円203円347円261円273円.py" new file mode 100644 index 0000000..c493b81 --- /dev/null +++ "b/py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-344円272円253円345円205円203円346円250円241円345円274円217円-345円205円203円347円261円273円.py" @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- +# @Author : ydf +# @Time : 2019年11月19日 0019 12:22 +from monkey_print2 import print + + +class FlyweightMetaClass(type): + def __init__(cls, name, bases, dict): + super(FlyweightMetaClass, cls).__init__(name, bases, dict) + cls._instance_map = {} + + @staticmethod + def _make_arguments_to_key(args, kwds): + key = args + if kwds: + sorted_items = sorted(kwds.items()) + for item in sorted_items: + key += item + return key + + def __call__(cls, *args, **kw): + cache_key = f'{cls}_{cls._make_arguments_to_key(args, kw)}' + if cache_key not in cls._instance_map: + cls._instance_map[cache_key] = super().__call__(*args, **kw) + return cls._instance_map[cache_key] + + +class A(metaclass=FlyweightMetaClass): + def __init__(self, a, b): + print(f'???紮???? {a},{b}') + + +if __name__ == '__main__': + A(1, 2) + A(1, 2) + A(1, 3) + """ + "D:/coding2/python36patterns/???綮阪??罔≦??-篋????罔≦??-???膠?.py:28" 14:19:44 ???紮???? 1,2 # 菴??媺???Ü??菴?茵?筝?罨\??篋????罔≦????巡賢篋?膽?絖???? + "D:/coding2/python36patterns/???綮阪??罔≦??-篋????罔≦??-???膠?.py:28" 14:19:44 ???紮???? 1,3 + """ diff --git "a/py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-344円272円253円345円205円203円346円250円241円345円274円217円-350円243円205円351円245円260円345円231円250円347円211円210円346円234円254円.py" "b/py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-344円272円253円345円205円203円346円250円241円345円274円217円-350円243円205円351円245円260円345円231円250円347円211円210円346円234円254円.py" new file mode 100644 index 0000000..11bca9a --- /dev/null +++ "b/py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-344円272円253円345円205円203円346円250円241円345円274円217円-350円243円205円351円245円260円345円231円250円347円211円210円346円234円254円.py" @@ -0,0 +1,63 @@ +# -*- coding: utf-8 -*- +# @Author : ydf +# @Time : 2019年10月8日 0008 13:55 +""" +篋????罔≦?? +篋????罔≦?????菴?筝榊?娯室絲壕院綣???ユ?井???延昆??ユ??絨???????絖?篏睡?Ǎ??????????ц?緒??筝?筝ŭ昆???絨掩?壚??筝???????倶???????ス?????筝??櫔????井?勛????延昆絲壕院鐚?箴?莎???倶??????櫔????井?勌??綺???壚昆??????筝???????鐚????筝堺?鋇?噲莟∞??菴?腱?篆≧?壚????後??鐚????羈???延昆鐚?絋????篋???????荀??????堺????井????莚ョ?怨???欠?篁g????丞ず???箴???? + +篋????罔≦?鋌?篋????箴?罔≦?????筝?????ァ??九??紊?箴?罔≦?鋈???眼?????絽悟?究柑鐚?絎??????у??篏睡????堺??ぇ篋????箴?罔≦????? +箴?絋????綮坂??筝??井????菴??・鐚?筝?絽????綮榊??紊?筝????・鐚?篏????荀???????筝?茹i?????筝????篏?絅遵???佀?阪??????井????鐚?綵?篌?????????阪????ip腴?????????九??鐚???h????荀????綮坂??筝??亥??菴??・篋?鐚?菴?腱?篏睡??篋????罔≦??????????? +""" +from functools import wraps + +from monkey_print2 import print + + +def flyweight(cls): + _instance = {} + + def _make_arguments_to_key(args, kwds): + key = args + if kwds: + sorted_items = sorted(kwds.items()) + for item in sorted_items: + key += item + return key + + @wraps(cls) + def _flyweight(*args, **kwargs): + cache_key = f'{cls}_{_make_arguments_to_key(args, kwargs)}' + if cache_key not in _instance: + _instance[cache_key] = cls(*args, **kwargs) + return _instance[cache_key] + + return _flyweight + + +@flyweight +class A: + def __init__(self, identity): + self.identity = identity + + def eat(self): + print(f'{self.identity} ???薀?') + + +if __name__ == '__main__': + a1 = A('001') + a2 = A('001') + print(a1 == a2) + a1.eat() + a2.eat() + a3 = A('003') + print(a1 == a3) + a3.eat() + + """ + a1???a2?????筝?筝?噲莟\?? + "D:/coding2/python36patterns/???綮阪??罔≦??-篋????罔≦??-茖?薀医???????.py:49" 15:48:38 True + "D:/coding2/python36patterns/???綮阪??罔≦??-篋????罔≦??-茖?薀医???????.py:43" 15:48:38 001 ???薀? + "D:/coding2/python36patterns/???綮阪??罔≦??-篋????罔≦??-茖?薀医???????.py:43" 15:48:38 001 ???薀? + "D:/coding2/python36patterns/???綮阪??罔≦??-篋????罔≦??-茖?薀医???????.py:53" 15:48:38 False + "D:/coding2/python36patterns/???綮阪??罔≦??-篋????罔≦??-茖?薀医???????.py:43" 15:48:38 003 ???薀? + """ diff --git "a/py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-344円272円253円345円205円203円346円250円241円345円274円217円.py" "b/py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-344円272円253円345円205円203円346円250円241円345円274円217円.py" new file mode 100644 index 0000000..7b6d1a1 --- /dev/null +++ "b/py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-344円272円253円345円205円203円346円250円241円345円274円217円.py" @@ -0,0 +1,97 @@ +# -*- coding: utf-8 -*- +# @Author : ydf +# @Time : 2019年10月8日 0008 13:55 +""" +篋????罔≦?? +篋????罔≦?????菴?筝榊?娯室絲壕院綣???ユ?井???延昆??ユ??絨???????絖?篏睡?Ǎ??????????ц?緒??筝?筝ŭ昆???絨掩?壚??筝???????倶???????ス?????筝??櫔????井?勛????延昆絲壕院鐚?箴?莎???倶??????櫔????井?勌??綺???壚昆??????筝???????鐚????筝堺?鋇?噲莟∞??菴?腱?篆≧?壚????後??鐚????羈???延昆鐚?絋????篋???????荀??????堺????井????莚ョ?怨???欠?篁g????丞ず???箴???? + +篋????罔≦?鋌?篋????箴?罔≦?????筝?????ァ??九??紊?箴?罔≦?鋈???眼?????絽悟?究柑鐚?絎??????у??篏睡????堺??ぇ篋????箴?罔≦????? +箴?絋????綮坂??筝??井????菴??・鐚?筝?絽????綮榊??紊?筝????・鐚?篏????荀???????筝?茹i?????筝????篏?絅遵???佀?阪??????井????鐚?綵?篌?????????阪????ip腴?????????九??鐚???h????荀????綮坂??筝??亥??菴??・篋?鐚?菴?腱?篏睡??篋????罔≦??????????? + + +箴?絋??????????筝???篋???????篁g????? +# -*- coding: utf-8 -*- +# @Author : ydf +# @Time : 2020年1月13日 0013 12:09 +""" +# ???莚壚戎??????箴?莅乗?≧─綣????箴?絖? + +''' +from redis import Redis +class MyRedis: + _inst = None + + def __new__(cls, *args, **kwargs): + if not cls._inst: + self = super().__new__(cls) + self.__my_init__(*args, **kwargs) + cls._inst = self + return cls._inst + + + def __my_init__(self,redis_db): + print(f'篌???ョ??redis db??? {redis_db}') + self.r = Redis(host='127.0.0.1',port=6379,db=redis_db) + + def set(self,key,value): + self.r.set(key,value) + +if __name__ == '__main__': + """ + ???箴?罔≦?鋎睡??筝?綵?鐚???????蕁合??隈紊ф?闆?鐚????篋?莚贋??箙?羃∞?????redis????????後?括??鐚????筝阪??箴?罔≦?鋇???翫??db5鐚????篋?篁ヤ減??醇?上??db6鐚?db7鐚?綺?莚ヤ戎???篋????罔≦?????????莚夌??篏睡??篋????箴?罔≦????? + """ + MyRedis(5).set('a',1) + MyRedis(6).set('b', 2) + MyRedis(5).set('c', 3) + MyRedis(6).set('d', 4) + +''' +from monkey_print2 import print + + +class A: + pool = dict() + + def __new__(cls, identity): + """ + ???莅丞?後?????絖?垸Ü?????1筝?6??? + :param identity: + :return: + + 菴?筝??壚昆???罔≦??????篋坂???????育????? __new__絨掩?>散???絨?腑?膸颷?????篏???≧?奝?????篋?__new__???篁g??篁???処丨筝堺????箴?罔≦????? + 筝肢????壩押???????偰瓜???筝?篋?网?綽窮????セ寒鐚?罩肢佖隋セ??綵√??????????????莚虁丨??ャ?? + ???莎欠??荀???ラ??__new__???慌??ワ??__init__???慌??ワ??筝???ラ?????莚?絨延??罩肢佖隋セ?????箴?罔≦?????綵√????? + """ + obj = cls.pool.get(identity, None) + if not obj: + obj = object.__new__(cls) + print(f'絎?箴???? 絖?垬減 {identity} ???絖???') + cls.pool[identity] = obj + return obj + + def __init__(self, identity): + self.identity = identity + + def eat(self): + print(f'{self.identity} ???薀?') + + +if __name__ == '__main__': + A('001').eat() + A('001').eat() + A('002').eat() + + # 筝???∽???割??菴?筝ŭ昆???罔≦?頮?査莚贋???????箴?罔≦????????薊潟??絋?????????箴?罔≦??print(id(A('001')) == id(A('002'))) 膸????篌????True + print(id(A('001')) == id(A('002'))) # False + print(id(A('001')) == id(A('001'))) # True + + """ + 筝?篌?紊?罨∞????? 001絖?埇?????絖???筝?噲莟<?? + "D:/coding2/python36patterns/???綮阪??罔≦??-篋????罔≦??.py:30" 11:46:53 絎?箴???? 絖?垬減 001 ???絖??? + "D:/coding2/python36patterns/???綮阪??罔≦??-篋????罔≦??.py:38" 11:46:53 001 ???薀? + "D:/coding2/python36patterns/???綮阪??罔≦??-篋????罔≦??.py:38" 11:46:53 001 ???薀? + "D:/coding2/python36patterns/???綮阪??罔≦??-篋????罔≦??.py:30" 11:46:53 絎?箴???? 絖?垬減 002 ???絖??? + "D:/coding2/python36patterns/???綮阪??罔≦??-篋????罔≦??.py:38" 11:46:53 002 ???薀? + "D:/coding2/python36patterns/???綮阪??罔≦??-篋????罔≦??.py:45" 11:46:53 False + "D:/coding2/python36patterns/???綮阪??罔≦??-篋????罔≦??.py:46" 11:46:53 True + """ diff --git "a/py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円-345円205円203円347円261円273円.py" "b/py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円-345円205円203円347円261円273円.py" new file mode 100644 index 0000000..cd11c1c --- /dev/null +++ "b/py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円-345円205円203円347円261円273円.py" @@ -0,0 +1,57 @@ +# -*- coding: utf-8 -*- +# @Author : ydf +# @Time : 2019年10月8日 0008 13:55 +""" +???箴?罔≦?? +??????????岩??蘂????鐚?菴?筝???壩??絽悟????莅乗?≧─綣????緇?緇??Ű?処?怨?肴????坂??篁???処???肴??筝?腱?莅乗?≧─綣??篏?oop??号?ス?勛????虁??紊?箴?鐚? +篏睡??oop??ュ???ー???箴?罔≦???絅遵???????? +1 綮区?????紮????鐚??Ŭ??????????絲壕院??九??莪????__init__?????∽?九?????菴?茵????紮????鐚? +2 ??????篌???????紮???? +?????鐚?筝???シ????灸??鐚?筝????荀???ヤ戎???瓜??ユ?????箴?罔≦??????篁句婚罔≦?????絮?????????????羈????絎???喝櫽??python罔≦??紊ñ?九??箴?鐚?筝?篆∞??莚??櫆札羌?莚?筝?筝?鐚?c絲弱??a鐚?b箙?絲弱??a鐚?c絲弱??b鐚????a?????∝?贋・print hello鐚? +菴?茵?c.py,?Ü???????遺??罨?print hello??? + +""" +import threading +from functools import wraps + +from monkey_print2 import print + + +class Singleton(type): + def __init__(cls, name, bases, dict): + super(Singleton, cls).__init__(name, bases, dict) + cls.instance = None + + def __call__(cls, *args, **kw): + if cls.instance is None: + cls.instance = super(Singleton, cls).__call__(*args, **kw) + return cls.instance + + +class A(metaclass=Singleton): + def __init__(self, identity): + print('??ц??init') + self.identity = identity + + def eat(self): + print(f'{self.identity} ???薀?') + + +if __name__ == '__main__': + a1 = A('001') + a2 = A('001') + print(a1 == a2) + a1.eat() + a2.eat() + a3 = A('003') + print(a1 == a3) + a3.eat() + + """ + a1 a2 a3 筝?罨≦??箴??????堺?ワ??篏???醇????筝?筝?噲莟<??絲号??筝?篋????罔≦????? + "D:/coding2/python36patterns/???綮阪??罔≦??-???箴?罔≦??.py:36" 16:00:25 True +"D:/coding2/python36patterns/???綮阪??罔≦??-???箴?罔≦??.py:30" 16:00:25 001 ???薀? +"D:/coding2/python36patterns/???綮阪??罔≦??-???箴?罔≦??.py:30" 16:00:25 001 ???薀? +"D:/coding2/python36patterns/???綮阪??罔≦??-???箴?罔≦??.py:40" 16:00:25 True +"D:/coding2/python36patterns/???綮阪??罔≦??-???箴?罔≦??.py:30" 16:00:25 001 ???薀? + """ diff --git "a/py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円-350円243円205円351円245円260円345円231円250円.py" "b/py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円-350円243円205円351円245円260円345円231円250円.py" new file mode 100644 index 0000000..2908f50 --- /dev/null +++ "b/py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円-350円243円205円351円245円260円345円231円250円.py" @@ -0,0 +1,63 @@ +# -*- coding: utf-8 -*- +# @Author : ydf +# @Time : 2019年10月8日 0008 13:55 +""" +???箴?罔≦?? +??????????岩??蘂????鐚?菴?筝???壩??絽悟????莅乗?≧─綣????緇?緇??Ű?処?怨?肴????坂??篁???処???肴??筝?腱?莅乗?≧─綣??篏?oop??号?ス?勛????虁??紊?箴?鐚? +篏睡??oop??ュ???ー???箴?罔≦???絅遵???????? +1 綮区?????紮????鐚??Ŭ??????????絲壕院??九??莪????__init__?????∽?九?????菴?茵????紮????鐚? +2 ??????篌???????紮???? +?????鐚?筝???シ????灸??鐚?筝????荀???ヤ戎???瓜??ユ?????箴?罔≦??????篁句婚罔≦?????絮?????????????羈????絎???喝櫽??python罔≦??紊ñ?九??箴?鐚?筝?篆∞??莚??櫆札羌?莚?筝?筝?鐚?c絲弱??a鐚?b箙?絲弱??a鐚?c絲弱??b鐚????a?????∝?贋・print hello鐚? +菴?茵?c.py,?Ü???????遺??罨?print hello??? + +""" +import threading +from functools import wraps + +from monkey_print2 import print + + +def singleton(cls): + """ + ???箴?罔≦?頯?薀医??,??医????ョ鎖腮????鐚???雁?√?榊?????箴?罔≦???筝肢??茹e?喝??膾睡??絋?100膾睡???????九??箴?????????灸???櫝?巡????榊ー筝?箴????箴??????????,絎?羌???? + """ + _instance = {} + singleton.__lock = threading.Lock() # 菴??????贋・羲?腓坂??膾睡??絎?????????箴?罔≦?? + + @wraps(cls) + def _singleton(*args, **kwargs): + with singleton.__lock: + if cls not in _instance: + _instance[cls] = cls(*args, **kwargs) + return _instance[cls] + + return _singleton + + +@singleton +class A: + def __init__(self, identity): + self.identity = identity + + def eat(self): + print(f'{self.identity} ???薀?') + + +if __name__ == '__main__': + a1 = A('001') + a2 = A('001') + print(a1 == a2) + a1.eat() + a2.eat() + a3 = A('003') + print(a1 == a3) + a3.eat() + + """ + a1 a2 a3 筝?罨≦??箴??????堺?ワ??篏???醇????筝?筝?噲莟<??絲号??筝?篋????罔≦????? + "D:/coding2/python36patterns/???綮阪??罔≦??-???箴?罔≦??.py:36" 16:00:25 True +"D:/coding2/python36patterns/???綮阪??罔≦??-???箴?罔≦??.py:30" 16:00:25 001 ???薀? +"D:/coding2/python36patterns/???綮阪??罔≦??-???箴?罔≦??.py:30" 16:00:25 001 ???薀? +"D:/coding2/python36patterns/???綮阪??罔≦??-???箴?罔≦??.py:40" 16:00:25 True +"D:/coding2/python36patterns/???綮阪??罔≦??-???箴?罔≦??.py:30" 16:00:25 003 ???薀? + """ diff --git "a/py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円-351円207円215円345円206円231円new344円275円206円344円270円215円346円257円217円346円254円241円346円211円247円350円241円214円init346円226円271円345円274円217円.py" "b/py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円-351円207円215円345円206円231円new344円275円206円344円270円215円346円257円217円346円254円241円346円211円247円350円241円214円init346円226円271円345円274円217円.py" new file mode 100644 index 0000000..189fb8d --- /dev/null +++ "b/py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円-351円207円215円345円206円231円new344円275円206円344円270円215円346円257円217円346円254円241円346円211円247円350円241円214円init346円226円271円345円274円217円.py" @@ -0,0 +1,60 @@ +# -*- coding: utf-8 -*- +# @Author : ydf +# @Time : 2019年10月8日 0008 13:55 +""" +???箴?罔≦?? +??????????岩??蘂????鐚?菴?筝???壩??絽悟????莅乗?≧─綣????緇?緇??Ű?処?怨?肴????坂??篁???処???肴??筝?腱?莅乗?≧─綣??篏?oop??号?ス?勛????虁??紊?箴?鐚? +篏睡??oop??ュ???ー???箴?罔≦???絅遵???????? +1 綮区?????紮????鐚??Ŭ??????????絲壕院??九??莪????__init__?????∽?九?????菴?茵????紮????鐚? +2 ??????篌???????紮???? +?????鐚?筝???シ????灸??鐚?筝????荀???ヤ戎???瓜??ユ?????箴?罔≦??????篁句婚罔≦?????絮?????????????羈????絎???喝櫽??python罔≦??紊ñ?九??箴?鐚?筝?篆∞??莚??櫆札羌?莚?筝?筝?鐚?c絲弱??a鐚?b箙?絲弱??a鐚?c絲弱??b鐚????a?????∝?贋・print hello鐚? +菴?茵?c.py,?Ü???????遺??罨?print hello??? + +""" + + +from monkey_print2 import print + + +class A: + """ + # &&&&&菴?腱???劫????????new絎??ー??????箴?罔≦?頳?羈???????順?句????????絲壕院??醇????筝?筝???篏?init篌?罸閩♂?処←?????????????py2菴?腱????羈?絎??ー??????箴?罔≦???init筝?篌??????←莪???Ǎ??py3篌?茴????????????? + 荀????init?????∽????サ??紊э??筝?絽????茴?????????Ǎ???櫆札??号???Ϊ???????劫???????????銀????劫????????箴?罔≦?????&&&&& + 篆勖?剛????∵??筝?失??合????????new??劫?? + """ + _inst = None + def __new__(cls, *args,**kwargs): + if not cls._inst: + cls._inst = object.__new__(cls) + cls._inst.__custom_init__(*args,**kwargs) # ?????劫?????????? + return cls._inst + + def __custom_init__(self, identity): # 菴?茵?箙???壩?奝????鴻???サ???篋?__init__??号??鐚?init篌?茴?????????Ǎ????号?????new?????≫源??????????? + print('??ц??init') + self.identity = identity + + def eat(self): + print(f'{self.identity} ???薀?') + + +if __name__ == '__main__': + a1 = A('001') + a2 = A('001') + print(a1 == a2) + a1.eat() + a2.eat() + a3 = A('003') + print(a1 == a3) + a3.eat() + + """ + init?Ü????ц??筝?罨<?? +"D:/coding2/python36patterns/???綮阪??罔≦??-???箴?罔≦??-??????new篏?筝?罸閩≧?ц??init??劫??.py:33" 16:20:19 ??ц??init +"D:/coding2/python36patterns/???綮阪??罔≦??-???箴?罔≦??-??????new篏?筝?罸閩≧?ц??init??劫??.py:43" 16:20:19 True +"D:/coding2/python36patterns/???綮阪??罔≦??-???箴?罔≦??-??????new篏?筝?罸閩≧?ц??init??劫??.py:37" 16:20:19 001 ???薀? +"D:/coding2/python36patterns/???綮阪??罔≦??-???箴?罔≦??-??????new篏?筝?罸閩≧?ц??init??劫??.py:37" 16:20:19 001 ???薀? +"D:/coding2/python36patterns/???綮阪??罔≦??-???箴?罔≦??-??????new篏?筝?罸閩≧?ц??init??劫??.py:47" 16:20:19 True +"D:/coding2/python36patterns/???綮阪??罔≦??-???箴?罔≦??-??????new篏?筝?罸閩≧?ц??init??劫??.py:37" 16:20:19 001 ???薀? + + + """ diff --git "a/py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円.py" "b/py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円.py" new file mode 100644 index 0000000..08f7a80 --- /dev/null +++ "b/py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円215円225円344円276円213円346円250円241円345円274円217円.py" @@ -0,0 +1,58 @@ +# -*- coding: utf-8 -*- +# @Author : ydf +# @Time : 2019年10月8日 0008 13:55 +""" +???箴?罔≦?? +??????????岩??蘂????鐚?菴?筝???壩??絽悟????莅乗?≧─綣????緇?緇??Ű?処?怨?肴????坂??篁???処???肴??筝?腱?莅乗?≧─綣??篏?oop??号?ス?勛????虁??紊?箴?鐚? +篏睡??oop??ュ???ー???箴?罔≦???絅遵???????? +1 綮区?????紮????鐚??Ŭ??????????絲壕院??九??莪????__init__?????∽?九?????菴?茵????紮????鐚? +2 ??????篌???????紮???? +?????鐚?筝???シ????灸??鐚?筝????荀???ヤ戎???瓜??ユ?????箴?罔≦??????篁句婚罔≦?????絮?????????????羈????絎???喝櫽??python罔≦??紊ñ?九??箴?鐚?筝?篆∞??莚??櫆札羌?莚?筝?筝?鐚?c絲弱??a鐚?b箙?絲弱??a鐚?c絲弱??b鐚????a?????∝?贋・print hello鐚? +菴?茵?c.py,?Ü???????遺??罨?print hello??? + +""" + + +from monkey_print2 import print + + +class A: + """ + # 菴?腱???劫????????new絎??ー??????箴?罔≦?頳?羈???????順?句????????絲壕院??醇????筝?筝???篏?init篌?罸閩♂?処←?????????????py2菴?腱????羈?絎??ー??????箴?罔≦???init筝?篌??????←莪???Ǎ??py3篌?茴????????????? + 荀????init?????∽????サ??紊э??筝?絽????罸閩♂?処←?????????Ǎ???櫆札??号???Ϊ???????劫???????????銀????劫????????箴?罔≦????? + """ + _inst = None + def __new__(cls, identity): + if not cls._inst: + cls._inst = object.__new__(cls) + return cls._inst + + def __init__(self, identity): + print('??ц??init') + self.identity = identity + + def eat(self): + print(f'{self.identity} ???薀?') + + +if __name__ == '__main__': + a1 = A('001') + a2 = A('001') + print(a1 == a2) + a1.eat() + a2.eat() + a3 = A('003') + print(a1 == a3) + a3.eat() + + """ + "D:/coding2/python36patterns/???綮阪??罔≦??-???箴?罔≦??.py:27" 16:13:31 ??ц??init +"D:/coding2/python36patterns/???綮阪??罔≦??-???箴?罔≦??.py:27" 16:13:31 ??ц??init +"D:/coding2/python36patterns/???綮阪??罔≦??-???箴?罔≦??.py:37" 16:13:31 True +"D:/coding2/python36patterns/???綮阪??罔≦??-???箴?罔≦??.py:31" 16:13:31 001 ???薀? +"D:/coding2/python36patterns/???綮阪??罔≦??-???箴?罔≦??.py:31" 16:13:31 001 ???薀? +"D:/coding2/python36patterns/???綮阪??罔≦??-???箴?罔≦??.py:27" 16:13:31 ??ц??init +"D:/coding2/python36patterns/???綮阪??罔≦??-???箴?罔≦??.py:41" 16:13:31 True +"D:/coding2/python36patterns/???綮阪??罔≦??-???箴?罔≦??.py:31" 16:13:31 003 ???薀? + + """ diff --git "a/py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円216円237円345円236円213円346円250円241円345円274円217円.py" "b/py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円216円237円345円236円213円346円250円241円345円274円217円.py" new file mode 100644 index 0000000..a4b04cc --- /dev/null +++ "b/py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円216円237円345円236円213円346円250円241円345円274円217円.py" @@ -0,0 +1,92 @@ +# -*- coding: utf-8 -*- +# @Author : ydf +# @Time : 2019年10月8日 0008 13:55 +""" +??????罔≦?? +??????罔≦???Prototype Pattern鐚???夌??篋????綮咲??紊????絲壕院鐚??????九????巡??莚???ц?純??菴?腱?膠糸?????莅乗?≧─綣鎡?篋????綮阪??罔≦???絎????箴?篋?筝?腱????綮阪噲莟∞?????篏恰?劫????? + +菴?腱?罔≦????????ー篋?筝?筝???????・????莚ユ・????篋????綮阪?????絲壕院????????????綵???贋・???綮阪噲莟∞??篁d桟罸?莨?紊ф?駈?????????????腱?罔≦?????箴?絋?鐚?筝?筝?噲莟♂??荀????筝?筝???篁d桟?????井???????篏?箙????茴????綮冴?????篁サ櫆札膽?絖?莚ュ噲莟\?????筝?筝?筝?噯羆???区?????絎??????????鐚??????荀??????九????贋?井?井????鐚?篁ユ4??ュ?鎞???井????莪??????? + +篁?膸? +?????常???????????絎?箴????絎????綮阪噲莟∞??腱?膠誌??綛銀?????菴???決??菴?篋??????????綮堺?亥??絲壕院??? + +筝肢??茹e?鰹???????茵????綮榊??????????ゅ???????? + +篏???銀戎??Ǎ?? 1???綵?筝?筝?鎧膸?綺?莚ョ?ス??篋?絎????篋у?????綮削???????????茵?ず??吟?? 2???綵?荀?絎?箴???????膠紙??????茵???九?紙??絎???駈??箴?絋?鐚????菴???????茖?莉純?? 3???筝坂????水?????綮坂??筝ŭ??篋у??膠糸??罨≦抗茵????綏ュ??膠糸??罨≧?吟?? 4???綵?筝?筝?瓜???絎?箴??Ű?醇?????筝ŭ???????倶??膸????筝下??筝?腱???吟??綮榊????後????亥?勛????????綛九?????絎?篁サ櫝?醇??罸閩∞?????????????倶?????綏ュ??箴????莚ョ瓜??贋?剛梢筝?篋???? + +絋?篏?茹e?鰹????ñ??綏我?????筝?筝??????絲壕院鐚?綽?????亥??????????????絲壕院筝???欠??絎?箴???? + +??渇?勌撮???鐚? 1???絎??ー?????????篏?鐚???? JAVA 膸ф?? Cloneable鐚??????? clone()鐚???? .NET 筝上櫆札篏睡?? Object 膠紫?? MemberwiseClone() ??号????ュ???ー絲壕院???羌???決????????菴?綺????????????劫????ュ???ー羞掩?決????? 2?????????罔≦???????欠??篋????胼紫瓜絲壕院???篏睡?????????隙??膠糸??鐚???????膠誌??箙???雁?????????括鎧鐚?絎??????決??羆?菴?篋?"??????膠?"??ユ??腮喝??????・?叵?? + +綺????絎?箴?鐚? 1???膸???????茖???? 2???JAVA 筝下?? Object clone() ??号????? + +篌???刻?? 1?????ц?醇??蕭???? 2????????炊???????醇?亥??膾?????? + +膽榊?刻?? 1??????紊?????????号?????荀?絲合瓜????????処??茵?????????????鐚?菴?絲剛???????亥??膠私?????????常??篏?絲剛??綏我?????膠私??筝?絎?緇?絎号??鐚???劫??綵?筝?筝?瓜綣????筝???壩??筝画??????????贋・絲壕院鐚???????綣??????????緇?ッ膸?????????九????? 2???綽?蕁糸???ー Cloneable ?・?叵?? + +篏睡????堺?姒?? 1???莎?羣?篌??????堺?壔?? 2???膠糸??紮???????荀?羔???????絽後?????莎?羣?鐚?菴?筝???羣??????シ?井?勉??隋コ散莎?羣?膈???? 3?????ц?遵??絎??????羆??????堺?壔?? 4??????菴? new 篋х??筝?筝?噲莟♂??荀????絽悟??????????井????紊????莅翠?勖?????鐚?????櫆札篏睡????????罔≦????? 5???筝?筝?噲莟≦??筝ŭ信??壕???????堺?壔?? 6???筝?筝?噲莟♂??荀????箴?膸???銀??絲壕院莅翠?卡?????筝????筝?????????櫝?初?初??荀?篆勖?劫?九?惹?駈???櫆札??????篏睡????????罔≦????決??紊?筝?噲莟>??莪??????篏睡????? 7??????絎????蕁合?勌賢鐚???????罔≦?鏅?絨??????サ?榊ー鐚?筝???シ????綏ュ????号??罔≦?鋇?莎桁?榊ー鐚????菴? clone ?????号?????綮坂??筝?噲莟\????九????怨轡?????号?????箴?膸?莪???????????????罔≦?鎴牙?鋇? Java ???筝堺????銀??篏?鐚?紊у侔?櫆札????????炊?ヤ戎?????? + +羈???鋋?蕁刻??筝????菴?絲剛??筝?瓜菴?茵?絎?箴??????ユ???????医噲莟>??????????姒????????罔≦????奝??菴???決??筝?筝?ー???絲壕院????????医噲莟∞?????羌???決??絎??ー Cloneable鐚???????鐚?羞掩?決????奝??菴?絎??ー Serializable 莚糸??篋?菴???倶????? +""" +from monkey_print2 import print + +import copy +from collections import OrderedDict + + +class Book: + def __init__(self, name, authors, price, **rest): + '''rest???箴?絖????鐚???榊??????????水墾??????膈障????榊????ユ??''' + self.name = name + self.authors = authors + self.price = price + self.__dict__.update(rest) # 羞糸????銀??蘂?紊?絮???? + + def __str__(self): + mylist = [] + ordered = OrderedDict(sorted(self.__dict__.items())) + for i in ordered.keys(): + mylist.append('{}: {}'.format(i, ordered[i])) + if i == 'price': + mylist.append('$') + mylist.append('\n') + return ''.join(mylist) + + +class Prototype: + def __init__(self): + self.objects = dict() # ???紮????筝?筝?????????茵? + + def register(self, identifier, obj): + # ????????????茵?筝中絵?????????絲壕院 + self.objects[identifier] = obj + + def unregister(self, identifier): + # 篁??????????茵?筝上????ゅ?????絲壕院 + del self.objects[identifier] + + def clone(self, identifier, **attr): + # ??号?? identifier ????????????茵?筝中?ユ?上?????絲壕院綛九????? + found = self.objects.get(identifier) + if not found: + raise ValueError('Incorrect object identifier: {}'.format(identifier)) + obj = copy.deepcopy(found) + obj.__dict__.update(attr) # ?????亥??絮???у?惹?炊?√?????絲壕院筝下??絲劫??絮???? + return obj + + + + +if __name__ == '__main__': + b1 = Book('The C Programming Language', ('Brian W. Kernighan', 'Dennis M.Ritchie'), + price=118, publisher='Prentice Hall', length=228, publication_date='1978-02-22', + tags=('C', 'programming', 'algorithms', 'data structures')) + + prototype = Prototype() + cid = 'k&r-first' + prototype.register(cid, b1) + b2 = prototype.clone(cid, name='The C Programming Language(ANSI)', price=48.99, length=274, publication_date='1988-04-01', edition=2) + + for i in (b1, b2): + print(i) + print("ID b1 : {} != ID b2 : {}".format(id(b1), id(b2))) diff --git "a/py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円257円271円350円261円241円346円261円240円346円250円241円345円274円217円.py" "b/py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円257円271円350円261円241円346円261円240円346円250円241円345円274円217円.py" new file mode 100644 index 0000000..6109a02 --- /dev/null +++ "b/py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円257円271円350円261円241円346円261円240円346円250円241円345円274円217円.py" @@ -0,0 +1,56 @@ +# -*- coding: utf-8 -*- +# @Author : ydf +# @Time : 2019年10月8日 0008 16:41 +""" +???荀????罔≦?鋈?筝????篏睡????腱?罔≦???櫆札????????井????菴??・羆? 羌頵????羆?膈???? +絎??ー?????????筝や肩???荀??????井?号?姒??篏睡????九?????鐚?篏睡??絎???????綵?菴???????篏睡????筝??????篋?筝?筝???絽後失紊х????堺?壔?? +???絅醇?壚戎???with莚中????ュ?????絲壕院?????????菴?鐚???鎞?莪????紊????篁g????? + +莎?羣??????????, 筝????荀??櫆叱膽ð?х???ッ紜?(cpu\???絖?膈???ñ??莎?羣???????): cpu??ц?巡??紊?綣阪??, ???絖?罸?莨?膣у??, ?????丈?狗??, ???絖???????篌???????罸?莨?紊х??綵怨??, ???荀????蕭????絖?膊∞????????, ???綺???ф?????????????岩減???荀?; +??育???????????, 罸?絋???井????菴??・; +???綮堺????ソ?????絲壕院, ?櫆札????????????????, 罸?莨?絽梧????????膾睡??羆?鐚?ThreadPoolExecutor鐚?, 絖??????亥??羆?膈???? +""" +from queue import Queue +from monkey_print2 import print + + +class QueueObject(): + + def __init__(self, queue, auto_get=False): + self._queue = queue + self.object = self._queue.get() if auto_get else None + + def __enter__(self): + if self.object is None: + self.object = self._queue.get() + return self.object + + def __exit__(self, Type, value, traceback): + if self.object is not None: + self._queue.put(self.object) + self.object = None + + def __del__(self): + if self.object is not None: + self._queue.put(self.object) + self.object = None + + +def main(): + sample_queue = Queue() + sample_queue.put('yam') + with QueueObject(sample_queue) as obj: + print('Inside with: {}'.format(obj)) + print('Outside with: {}'.format(sample_queue.get())) + + sample_queue.put('sam') + queue_object = QueueObject(sample_queue, True) + print('?????? func: {}'.format(queue_object.object)) + print('紊???? func: {}'.format(sample_queue.get())) + + if not sample_queue.empty(): + print(sample_queue.get()) + + +if __name__ == '__main__': + main() diff --git "a/py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円273円272円351円200円240円350円200円205円346円250円241円345円274円217円.py" "b/py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円273円272円351円200円240円350円200円205円346円250円241円345円274円217円.py" new file mode 100644 index 0000000..b6e8580 --- /dev/null +++ "b/py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-345円273円272円351円200円240円350円200円205円346円250円241円345円274円217円.py" @@ -0,0 +1,121 @@ +# -*- coding: utf-8 -*- +# @Author : ydf +# @Time : 2019年10月8日 0008 13:55 +""" +綮咲?????罔≦?? + +綮咲?????罔≦?? +綮咲?????罔≦???Builder Pattern鐚?篏睡??紊?筝?????????絲壕院筝?罩ヤ??罩ユ??綮堺??筝?筝?????????絲壕院???菴?腱?膠糸?????莅乗?≧─綣鎡?篋????綮阪??罔≦???絎????箴?篋?筝?腱????綮阪噲莟∞?????篏恰?劫????? + +筝?筝? Builder 膠私??筝?罩ヤ??罩ユ????????膸????絲壕院???莚? Builder 膠紙?夌?ス??篋???銀??絲壕院?????? + +篁?膸? +?????常??絨?筝?筝????????????綮坂????区;腓榊?後??胼誌??篏水???????欠?????綮肴??腮??櫆札???綮坂????????茵?ず??? + +筝肢??茹e?鰹??筝肢??茹e?喝??蒐篁句鎧膸?筝昭和???????九????≫鹸???"筝?筝??????絲壕院"??????綮阪轡篏?鐚???狗??絽悟?怨??筝?????????絖?絲壕院???筝?絎????膊?羈???????鐚???延?????羆??????????鐚?菴?筝??????絲壕院??????筝??????膸鎵檎?≫鹸?????х???????????鐚?篏??????絎?篁ス????????筝?莎欠??膊?羈???雁?後噲腮喝????? + +篏???銀戎??Ǎ??筝?篋???堺?ソ??篁銀??篌????鐚??????句?????膸鎵後??????????九????? + +絋?篏?茹e?鰹??絨????筝?筝???????胼糸????? + +??渇?勌撮???鐚?綮咲?????鐚????綮阪?????箴?絎?箴?鐚?絲惹??鐚?膊∞??綮咲????堺?ョ??絎?箴????箴?莎???括鎧??? + +綺????絎?箴?鐚? 1????サ???招??削??羆???<???櫆???????壩?<????檎検膺?膈???壚????????鐚??????句???????夌?鎵後????????鐚?????????堺??莪????"絅?蕕?"??? 2???JAVA 筝下?? StringBuilder??? + +篌???刻?? 1???綮咲???????ス??鐚??????ï????? 2???箴推???ァ??句?????蕋???í?? + +膽榊?刻?? 1???篋у??綽?蕁紙????怨????刻???????贋???????吟?? 2???絋?????????????紊????鐚?篌????緇?紊????綮咲??膠祉?? + +篏睡????堺?姒?? 1??????荀??????????絲壕院??傑??紊????????????????????? 2??????荀??????????絲壕院??????絮???ф?セ昆??娯??箴?莎???? + +羈???鋋?蕁刻??筝?綏ュ??罔≦???????阪????姒??綮咲?????罔≦????翫????恰絵筝???銀散茖???????蕁阪????? +""" +from monkey_print2 import print + +import abc + + +# 罩ラĽ筝?鐚????綮阪噲綺????篋у????処院膠?/篋у??膠? +class Building(object): + def __init__(self): + self.floor = None + self.size = None + + def __repr__(self): + return 'Floor: {0.floor} | size: {0.size}'.format(self) + + +# 罩ラĽ筝?鐚????綮堺??綮肴????処院膠誌??筝肢???????箙????綮肴????????絮????/??号??鐚?篁ュ??膸ф?粋??綽?蕁糸???ー????????醇?処院 +# Abstract builder +class AbsBuilder(object): + def __init__(self): + self.building = None + + def new_building(self): + self.building = Building() + + @abc.abstractmethod + def build_floor(self): + pass + + @abc.abstractmethod + def build_size(self): + pass + + +# 罩ラĽ???鐚???隙?????綮肴??膠糸???ー +class HouseBuilder(AbsBuilder): + def build_floor(self): + self.building.floor = 'one' + + def build_size(self): + self.building.size = '220 squre' + + +class FlatBuilder(AbsBuilder): + def build_floor(self): + self.building.floor = 'seven' + + def build_size(self): + self.building.size = '140 squre' + + +# 罩ラĽ篋?鐚????綮坂婚???????????ヨ??膠誌????恰??膸????箴?膸?絎∽?欠????篋у?????絎?箴?絲壕院鐚?篁ュ??膸?茖?菴?腮? +class Director(object): + def __init__(self): + self.builder = None + + def construct_building(self): + """ + #綮咲?????罔≦?鋇?鐚?篁??????荀???九???欠?篁g???????上????域噯羆??????ヨ??菴???????膸????絲壕院 + """ + self.builder.new_building() + self.builder.build_floor() + self.builder.build_size() + + def get_building(self): + return self.builder.building + + +class Client(object): + def build(self, build_type): + if build_type == "House": + director = Director() + builder = HouseBuilder() + director.builder = builder + director.construct_building() + building = director.get_building() + print(building) + else: + director = Director() + builder = FlatBuilder() + director.builder = builder + director.construct_building() + building = director.get_building() + print(building) + + +if __name__ == "__main__": + build_type = "Flat" + client = Client() + client.build(build_type) diff --git "a/py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-346円212円275円350円261円241円345円267円245円345円216円202円346円250円241円345円274円217円.py" "b/py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-346円212円275円350円261円241円345円267円245円345円216円202円346円250円241円345円274円217円.py" new file mode 100644 index 0000000..98ba4d9 --- /dev/null +++ "b/py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-346円212円275円350円261円241円345円267円245円345円216円202円346円250円241円345円274円217円.py" @@ -0,0 +1,84 @@ +# -*- coding: utf-8 -*- +# @Author : ydf +# @Time : 2019年10月8日 0008 13:55 +""" +??処院綏ュ??罔≦?? + +??処院綏ュ??罔≦????壩?????綵∽?????綏ュ??罔≦?鋇中??筝堺?処院????????隙????シ?х??筝?腱?綵∽???????処院綏ュ??罔≦????壩??綵????紊?筝??処院茹???我?駈??篏睡????筝?腱?綏ュ??罔≦????? + +??処院綏ュ??罔≦???櫆札???絎∽?欠????箴?筝?筝?・????篏水???欠????筝?綽????絎?篋у???????隙??????????灸??鐚????綮阪??筝ŭ婚?????鋇下??篋у??絲壕院??? + +??号?勰??羂???炊?√?????鐚?篁私???・?????句瓜????????井?刻????遵??綵???遵???・???絖?膠糸????????罩わ??絎????筝?膤紫????????荀????鐚?篁?篁???夌瓜???筝?菴?篋???処院篋у??茹???牙?後?????筝?篋?絎?箴?鐚????筝???虁??篋???処院篋у?????絎?箴???? + +??∵??箙?鐚?箙?絨掩?虁??篋???処院篋у???????隙??絖?膠紫??絎?箴????綏ュ??膠肢??茣e??綮堺?処院篋у???????隙??絖?膠紫??絎?箴???? +""" +from monkey_print2 import print + + +class Xiaomi5: + def __init__(self): + self.phone_name = '絨靏?5' + + def send_msg(self): + print(f'??? {self.phone_name} ?????TEL拭') + + +class Xiaomi6: + def __init__(self): + self.phone_name = '絨靏?6' + + def send_msg(self): + print(f'??? {self.phone_name} ?????TEL拭') + + +class XiaomFactory: + @staticmethod + def get_phone(phone_type): + if phone_type == '5': + return Xiaomi5() + elif phone_type == '6': + return Xiaomi6() + + +class Apple5: + def __init__(self): + self.phone_name = '??号??5' + + def send_msg(self): + print(f'??? {self.phone_name} ?????TEL拭') + + +class Apple6: + def __init__(self): + self.phone_name = '??号??6' + + def send_msg(self): + print(f'??? {self.phone_name} ?????TEL拭') + + +class AppleFactory: + @staticmethod + def get_phone(phone_type): + if phone_type == '5': + return Xiaomi5() + elif phone_type == '6': + return Xiaomi6() + + +class FactoryProducer: + @staticmethod + def get_factory(factory_name): + if factory_name == 'xiaomi': + return XiaomFactory() + elif factory_name == 'apple': + return AppleFactory() + + +if __name__ == '__main__': + factory = FactoryProducer.get_factory('xiaomi') + xiaomi5 = factory.get_phone('5') + xiaomi5.send_msg() + + """ + "D:/coding2/python36patterns/???綮阪??罔≦??-??処院綏ュ??罔≦??.py:22" 14:38:03 ??? 絨靏?5 ?????TEL拭 + """ diff --git "a/py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-347円256円200円345円215円225円345円267円245円345円216円202円346円250円241円345円274円217円.py" "b/py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-347円256円200円345円215円225円345円267円245円345円216円202円346円250円241円345円274円217円.py" new file mode 100644 index 0000000..9dc4846 --- /dev/null +++ "b/py_design/345円210円233円345円273円272円345円236円213円346円250円241円345円274円217円-347円256円200円345円215円225円345円267円245円345円216円202円346円250円241円345円274円217円.py" @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +# @Author : ydf +# @Time : 2019年10月8日 0008 13:55 +""" +膊????綏ュ??罔≦?? + +絅遵??筝肢?????鐚? +1???絨????綮阪??箴????綏ヤ??筝?篏睡??絎?箴????綏ヤ?????綣? +2?????????紮????絎?箴???句??綏ヤ????上?医轡??????菴?茵?鐚?篏推撮?????翫俉???膸贋?ゃ?? +3???篏水??篆勖?剛撮?????銀??篌?綣?莎桁お紊х???????Ǎ?????ソ?????ï????с?? + 罸?絋?鐚????絲壕院A????ー?????篆勖?壕??筝???箴??????号?????絨延?????絲壕院B鐚?膸ф??A鐚???九????????A?????∝?????筝??号?????菴???駈??絋????羃≧??綏ュ??罔≦?????d??絨沿?????罸閩≦??綮?A絲壕院???篁g????醇?剛減???綮?B絲壕院???菴???????櫐?????筝?篁銀???????? + 絋???????綏ュ??罔≦?????d??鐚????篁サ櫆札?Ü信??劫轡???筝上??綮?A絲壕院?????号??鐚?絨怨櫆札絎????菴?篁銀?????篋??????翫俉??????鐚??櫆札???菴?筝???箴???????綮阪???????臀勖??篁銀賢?????d??絲剛??菴?腱??????Ǎ???Ű??篆勖?拷??臀勖??篁九葦?櫆札絎??ー篋?鐚?筝????荀?篆勖?劫轡???膠祉?? +""" +from monkey_print2 import print + + +class Xiaomi5: + def __init__(self): + self.phone_name = '絨靏?5' + + def send_msg(self): + print(f'??? {self.phone_name} ?????TEL拭') + + +class Xiaomi6: + def __init__(self): + self.phone_name = '絨靏?6' + + def send_msg(self): + print(f'??? {self.phone_name} ?????TEL拭') + + +def get_xiaomi_phone(phone_type): + if phone_type == '5': + return Xiaomi5() + elif phone_type == '6': + return Xiaomi6() + + +if __name__ == '__main__': + phone5 = get_xiaomi_phone('5') + phone5.send_msg() + + phone6 = get_xiaomi_phone('6') + phone6.send_msg() + + """ + "D:/coding2/python36patterns/???綮阪??罔≦??-膊????綏ュ??罔≦??.py:15" 14:16:27 ??? 絨靏?5 ?????TEL拭 + "D:/coding2/python36patterns/???綮阪??罔≦??-膊????綏ュ??罔≦??.py:23" 14:16:27 ??? 絨靏?6 ?????TEL拭 + """ diff --git "a/py_design/347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-mvc346円250円241円345円274円217円.py" "b/py_design/347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-mvc346円250円241円345円274円217円.py" new file mode 100644 index 0000000..c76997d --- /dev/null +++ "b/py_design/347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-mvc346円250円241円345円274円217円.py" @@ -0,0 +1,67 @@ +# -*- coding: utf-8 -*- +# @Author : ydf +# @Time : 2019年10月8日 0008 21:23 +""" +MVC 罔≦?鋌h; Model-View-Controller鐚?罔≦??-茹????-?ァ??九?Ǎ?? 罔≦?????菴?腱?罔≦?????篋?綺??????綺???????絮?綣??????? + +Model鐚?罔≦??鐚? - 罔≦??篁h;筝?筝????????井?勛??絲壕院??? JAVA POJO???絎?箙??櫆札絽?????肢??鐚??????井?????????倶?贋?井ァ??九????? +View鐚?茹???常?? - 茹???鞘撮茵?罔≦????????????井?勛???櫝???????? +Controller鐚??ァ??九?Ǎ?? - ?ァ??九??篏????篋?罔≦?????茹???鞘?????絎??ァ??倶?井?勖?????罔≦??絲壕院鐚?綛九????井?????????倶?贋?域????障??絎?篏粋????鞘??罔≦?????胼糸????? +""" +from monkey_print2 import print + +quotes = ('A man is not complete until he is married. Then he is finished.', + 'As I said before, I never repeat myself.', + 'Behind a successful man is an exhausted woman.', + 'Black holes really suck...', 'Facts are stubborn things.') + + +class QuoteModel: + + def get_quote(self, n): + try: + value = quotes[n] + except IndexError as err: + value = 'Not found!' + return value + + +class QuoteTerminalView: + + def show(self, quote): + print('And the quote is: "{}"'.format(quote)) + + def error(self, msg): + print('Error: {}'.format(msg)) + + def select_quote(self): + return input('Which quote number would you like to see?') + + +class QuoteTerminalController: + + def __init__(self): + self.model = QuoteModel() + self.view = QuoteTerminalView() + + def run(self): + valid_input = False + while not valid_input: + n = self.view.select_quote() + try: + n = int(n) + except ValueError as err: + self.view.error("Incorrect index '{}'".format(n)) + else: + valid_input = True + quote = self.model.get_quote(n) + self.view.show(quote) + + +def main(): + controller = QuoteTerminalController() + while True: + controller.run() + +if __name__ == '__main__': + main() \ No newline at end of file diff --git "a/py_design/347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-344円273円243円347円220円206円346円250円241円345円274円217円.py" "b/py_design/347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-344円273円243円347円220円206円346円250円241円345円274円217円.py" new file mode 100644 index 0000000..ba7ac43 --- /dev/null +++ "b/py_design/347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-344円273円243円347円220円206円346円250円241円345円274円217円.py" @@ -0,0 +1,66 @@ +# -*- coding: utf-8 -*- +# @Author : ydf +# @Time : 2019年10月8日 0008 22:40 + +""" +??????篋?綺????筝昭和?????篁シ?活?????倧??勖??筝?噲莟>???????ц??筝?筝???紊?筝???荀???????篏?鐚?箴?絋?鐚?莅翠?勖????? +篆≧?壎???????????莅悟????決倧??勖?????篆≧?壚?????鐚????篁サ?????隋勌???????桁?桁??莇喝?????????????????篏?膤紫??筝TEL??絖???? +膠私室????????居???????桁??蕁糸?傑??膊∞????????????????遵??鎧膸?筝上??茖???亥??綺???? +筝???∽????亥?????荀????篏?筝?筝?絎?筝?絎?????勰????後?潟??綮区?????紮???? +???Ί??筝???箴?鐚????篁シ?活?????筝?筝??∞???????セ??蕭????絲壕院??????綮肴??腮?綮区????亥????潔??罨∞??罩d戎???絎???? +???菴?茵???? + + + +???篁g??罔≦???Proxy Pattern鐚?筝昭和??筝?筝?瓜篁h;?Ί??筝?瓜????????純??菴?腱?膠糸?????莅乗?≧─綣鎡?篋?膸???????罔≦????? + +???篁g??罔≦?鋇昭和?????篁サ??綮阪?傑???ー???絲壕院???絲壕院鐚?篁ヤ梢???紊???????箴??????醇・?叵?? +""" + + +class SensitiveInfo: + + def __init__(self): + self.users = ['nick', 'tom', 'ben', 'mike'] + + def read(self): + print('There are {} users: {}'.format(len(self.users), ' '.join(self.users))) + + def add(self, user): + self.users.append(user) + print('Added user {}'.format(user)) + + +class Info: + + '''SensitiveInfo???篆???や撮???''' + + def __init__(self): + self.protected = SensitiveInfo() + self.secret = '0xdeadbeef' + + def read(self): + self.protected.read() + + def add(self, user): + sec = input('what is the secret? ') + self.protected.add(user) if sec == self.secret else print("That's wrong!") + + +def main(): + info = Info() + while True: + print('1. read list |==| 2. add user |==| 3. quit') + key = input('choose option: ') + if key == '1': + info.read() + elif key == '2': + name = input('choose username: ') + info.add(name) + elif key == '3': + exit() + else: + print('unknown option: {}'.format(key)) + +if __name__ == '__main__': + main() \ No newline at end of file diff --git "a/py_design/347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-345円244円226円350円247円202円346円250円241円345円274円217円.py" "b/py_design/347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-345円244円226円350円247円202円346円250円241円345円274円217円.py" new file mode 100644 index 0000000..9813c77 --- /dev/null +++ "b/py_design/347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-345円244円226円350円247円202円346円250円241円345円274円217円.py" @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# @Author : ydf +# @Time : 2019年10月8日 0008 19:00 +""" +紊?茹?罔≦???Facade Pattern鐚??????靗紫?????紊??????э??綛九??絎∽?欠????箴?篋?筝?筝????欠??櫆札莅翠?勛鎧膸?????・?叵??菴?腱?膠糸?????莅乗?≧─綣鎡?篋?膸???????罔≦???絎?????ー??????膤紫??羞糸??筝?筝?・??????ラ????靗紫?????紊??????с?? + +菴?腱?罔≦?闉??????遺??筝???筝????膠誌??莚ョ瓜???箴?篋?絎∽?欠?莚傑?????膊??????号?????絲合ー???膤紫??膠紙?号?????紮????莪??????? +""" + +from monkey_print2 import print + +class A: + def run(self): + print('A run') + + def jump(self): + print('A jump') + + +class B: + def run(self): + print('B run') + + def jump(self): + print('B jump') + + +class C: + def run(self): + print('C run') + + def jump(self): + print('C jump') + + +class Facade: + def __init__(self): + self.a = A() + self.b = B() + self.c = C() + + def run(self): + for item in ('a', 'b', 'c'): + getattr(self, item).run() + + def jump(self): + for item in ('a', 'b', 'c'): + getattr(self, item).jump() + + +if __name__ == '__main__': + facade = Facade() + facade.run() + facade.jump() diff --git "a/py_design/347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-346円241円245円346円216円245円346円250円241円345円274円217円.py" "b/py_design/347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-346円241円245円346円216円245円346円250円241円345円274円217円.py" new file mode 100644 index 0000000..8819ab7 --- /dev/null +++ "b/py_design/347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-346円241円245円346円216円245円346円250円241円345円274円217円.py" @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# @Author : ydf +# @Time : 2019年10月8日 0008 17:39 +""" +罅ユ・鐚?????鋇?綺ф.菴??・筝ゅ恩鐚????Python腮?綺顒乗?>賢???罅ユ・????????壩?処院?????????絎?篏??????????菴??・鐚?膊??????ヨ???夌瓜???膠糸??箴????菴?腱遺賢???菴??・??? + +罅ユ・罔≦?????菴????瓜???膠糸??箴????筝右?岩????Ǎ??篏水?倶?処院???絎??ー?櫆札??ス???????????筝?篋???後慌??逸??菴?絨掩?壩.?・罔≦?????紊х??篏??????? + +??後??????????恰?奝??菴?絨?茖?鐚?絨?筝?筝??処院膠紫????後?喝????医????号??????????筝堺.?・膠紫??絮???э??菴???桁??絎?箴????罅ユ・膠糸?????菴?篆勖?号.?・膠紫??絮???э??箴水櫆札絎??ー??処院???絎??ー箙???雁????ス??????????? + +""" +from monkey_print2 import print + + +class A: + def run(self, name): + print("my name is :{}".format(name)) + + +class B: + def run(self, name): + print("?????????絖???姒??{}".format(name)) + + +class Bridge: + def __init__(self, ager, classname): + self.ager = ager + self.classname = classname + + def bridge_run(self): + self.classname.run(self.ager) + + +if __name__ == '__main__': + test = Bridge('??????', A()) + test.bridge_run() + test.ager = 'Tome' + test.bridge_run() + test.classname = B() + test.bridge_run() + test.ager = '??????' + test.bridge_run() + """ + "D:/coding2/python36patterns/膸???????罔≦??-罅ユ・罔≦??.py:7" 17:56:50 my name is :?????? +"D:/coding2/python36patterns/膸???????罔≦??-罅ユ・罔≦??.py:7" 17:56:50 my name is :Tome +"D:/coding2/python36patterns/膸???????罔≦??-罅ユ・罔≦??.py:12" 17:56:50 ?????????絖???姒??Tome +"D:/coding2/python36patterns/膸???????罔≦??-罅ユ・罔≦??.py:12" 17:56:50 ?????????絖???姒???????? + + """ diff --git "a/py_design/347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-347円273円204円345円220円210円346円250円241円345円274円217円.py" "b/py_design/347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-347円273円204円345円220円210円346円250円241円345円274円217円.py" new file mode 100644 index 0000000..b6a6603 --- /dev/null +++ "b/py_design/347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-347円273円204円345円220円210円346円250円241円345円274円217円.py" @@ -0,0 +1,135 @@ +# -*- coding: utf-8 -*- +# @Author : ydf +# @Time : 2019年10月8日 0008 17:39 +""" +膸????罔≦?? +膸????罔≦???Composite Pattern鐚?鐚?????ū???????岩??罔≦?????夌??篋????筝?膸???娯室???絲壕院綵?篏?筝?筝???筝????絲壕院???膸????罔≦?鋐???勖??綵∝???????ョ?????絲壕院鐚??????ヨ;腓咲?????篁ュ????岩??絮?罨<??菴?腱?膠糸?????莅乗?≧─綣鎡?篋?膸???????罔≦???絎????綮坂??絲壕院膸???????綵∝???????? + +菴?腱?罔≦?????綮坂??筝?筝????????訓絲壕院膸????膠祉??莚ョ瓜???箴?篋?篆勖?合?後??絲壕院膸??????劫????? + +???篁ソ??菴?筝???∝??絎?箴???ユ??腓榊?????罔≦????????羈????絎?箴?羲?腓坂??筝?筝???膸?筝上??綏ョ??絮?罨∞???????? + +篁?膸? +?????常??絨?絲壕院膸??????????綵∝?????篁ヨ;腓?"??????-??岩??"???絮?罨∞????????膸????罔≦?鋎水???????桁噲???筝?噲莟≦??膸????絲壕院???篏睡????傑??筝???贋?с?? + +筝肢??茹e?鰹??絎???????篁シ?????膸?????????勰??筝昭和??罔∞??篋?膊???????膣????紊???????膣????网?綽居??絎∽?欠??綺??櫆札???紊????膊???????膣?筝???傑?ュ?????紊???????膣?鐚?篁????篏水??絎∽?欠??綺鋇?紊???????膣???????????????茹h???? + +篏???銀戎??Ǎ?? 1????????活;腓阪噲莟∞????????-??岩??絮?罨∞?????鐚????綵∝?????鐚???? 2??????絽?????????桁申??ョ?????絲壕院筝????筝?噲莟∞??筝????鐚??????桁??膸?筝???遺戎????????膸????筝下????????絲壕院??? + +絋?篏?茹e?鰹????????????嚭??絎??ー膸?筝??・?????????????????????莚ユ・?叵?? + +??渇?勌撮???鐚??????????????????莚ユ・????綛銀??????????????絮???? List鐚??????∽?? Component??? + +綺????絎?箴?鐚? 1???膊???虁;莨上???????シ??篏???違?????篏?膃????Ί??筝???篏???逸????銀賢鐚??Ί??筝???篏?膃????櫆札??壩??篏???違?????篏?膃????Ί??筝???篏???違?? 2?????? JAVA AWT ??? SWING 筝昭和??絲剛?? Button ??? Checkbox ??壩???囐??Container ??壩???????? + +篌???刻?? 1???蕭?絮?罔≦??莪???????????? 2????????壕???怨???????? + +膽榊?刻?????篏睡???????罔≦????駈????九嚭??????????????紕井????醇?????ー膠誌?????筝???壩・????菴????篋?箴?莎????臀????????? + +篏睡????堺?姒?????????????岩????堺?姒??絋????綵∵?????鐚????篁吟?????篁九す???膊∞????? + +羈???鋋?蕁刻??絎?箙???銀減??隙??膠祉?? + +""" +from monkey_print2 import print + + +# Component鐚???サ虁?処院膠? +class Company: + name = '' + + def __init__(self, name): + self.name = name + + def add(self, company): + pass + + def remove(self, company): + pass + + def display(self, depth): + pass + + def line_of_duty(self): # 絮ヨ?????茣? + pass + + # Composite鐚???サ夝瓜 + + +class ConcreteCompany(Company): + childrenCompany = None + + def __init__(self, name): + Company.__init__(self, name) + self.childrenCompany = [] + + def add(self, company): + self.childrenCompany.append(company) + + def remove(self, company): + self.childrenCompany.remove(company) + + def display(self, depth): + print('-' * depth + self.name) + + for component in self.childrenCompany: + component.display(depth + 2) + + def line_of_duty(self): # 絮ヨ?????茣? + for component in self.childrenCompany: + component.line_of_duty() + + +# Leaf鐚???隙???????初???? +class HRDepartment(Company): + def __init__(self, name): + Company.__init__(self, name) + + def display(self, depth): + print('-' * depth + self.name) + + def line_of_duty(self): # 絮ヨ?????茣? + print('%s\t???綏ユ???????壕你膊∞??' % self.name) + + +# Leaf鐚???隙???????初???? +class FinanceDepartment(Company): + def __init__(self, name): + Company.__init__(self, name) + + def display(self, depth): + print('-' * depth + self.name) + + def line_of_duty(self): # 絮ヨ?????茣? + print('%s\t??サ夡刈??≧?倶?夌?∞??' % self.name) + + + + +if __name__ == '__main__': + root = ConcreteCompany('???篋シ?糸?サ??') + root.add(HRDepartment('??糸?サ夓査???莎?羣????')) + root.add(FinanceDepartment('??糸?サ夡刈??♂??')) + + comp = ConcreteCompany('???筝??????サ??') + comp.add(HRDepartment('???筝??????サ夓査???莎?羣????')) + comp.add(FinanceDepartment('???筝??????サ夡刈??♂??')) + root.add(comp) + + comp1 = ConcreteCompany('???篋サ??篋?紊?') + comp1.add(HRDepartment('???篋サ??篋?紊?篋阪??莎?羣????')) + comp1.add(FinanceDepartment('???篋サ??篋?紊?茣√?♂??')) + comp.add(comp1) + + comp2 = ConcreteCompany('??上?????篋?紊?') + comp2.add(HRDepartment('??上?????篋?紊?篋阪??莎?羣????')) + comp2.add(FinanceDepartment('??上?????篋?紊?茣√?♂??')) + comp.add(comp2) + + print('-------??サ夝????????-------') + root.display(1) + + print('\n-------???茣?-------') + root.line_of_duty() + + diff --git "a/py_design/347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-350円243円205円351円245円260円350円200円205円346円250円241円345円274円217円-345円207円275円346円225円260円350円243円205円351円245円260円345円231円250円.py" "b/py_design/347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-350円243円205円351円245円260円350円200円205円346円250円241円345円274円217円-345円207円275円346円225円260円350円243円205円351円245円260円345円231円250円.py" new file mode 100644 index 0000000..c18e67e --- /dev/null +++ "b/py_design/347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-350円243円205円351円245円260円350円200円205円346円250円241円345円274円217円-345円207円275円346円225円260円350円243円205円351円245円260円345円231円250円.py" @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +# @Author : ydf +# @Time : 2019年10月8日 0008 18:32 +""" +??醇?域??薀医?? +""" +import time +from functools import wraps +from monkey_print2 import print + + +def timethis(func): + ''' + Decorator that reports the execution time. + ''' + + @wraps(func) + def wrapper(*args, **kwargs): + start = time.time() + result = func(*args, **kwargs) + end = time.time() + print(func.__name__, end - start) + return result + + return wrapper + + +@timethis +def fun(): + time.sleep(3) + return 1 + + +if __name__ == '__main__': + fun() diff --git "a/py_design/347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-350円243円205円351円245円260円350円200円205円346円250円241円345円274円217円-347円261円273円350円243円205円351円245円260円345円231円250円.py" "b/py_design/347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-350円243円205円351円245円260円350円200円205円346円250円241円345円274円217円-347円261円273円350円243円205円351円245円260円345円231円250円.py" new file mode 100644 index 0000000..a4fd27e --- /dev/null +++ "b/py_design/347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-350円243円205円351円245円260円350円200円205円346円250円241円345円274円217円-347円261円273円350円243円205円351円245円260円345円231円250円.py" @@ -0,0 +1,47 @@ +# -*- coding: utf-8 -*- +# @Author : ydf +# @Time : 2019年10月8日 0008 18:32 +""" +膠肢??薀医?? +""" +import types +from functools import wraps +from monkey_print2 import print + + + +class Profiled: + def __init__(self, func): + wraps(func)(self) + self.ncalls = 0 + + def __call__(self, *args, **kwargs): + self.ncalls += 1 + return self.__wrapped__(*args, **kwargs) + + def __get__(self, instance, cls): + if instance is None: + return self + else: + return types.MethodType(self, instance) + +@Profiled +def add(x, y): + return x + y + +class Spam: + @Profiled + def bar(self, x): + print(self, x) + +if __name__ == '__main__': + add(2, 3) + add(4, 5) + print(add.ncalls) + + s = Spam() + s.bar(1) + s.bar(2) + s.bar(3) + print(Spam.bar.ncalls) + diff --git "a/py_design/347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-350円243円205円351円245円260円350円200円205円346円250円241円345円274円217円.py" "b/py_design/347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-350円243円205円351円245円260円350円200円205円346円250円241円345円274円217円.py" new file mode 100644 index 0000000..96c5c49 --- /dev/null +++ "b/py_design/347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-350円243円205円351円245円260円350円200円205円346円250円241円345円274円217円.py" @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +# @Author : ydf +# @Time : 2019年10月8日 0008 18:24 + +""" +???莅坂????倶??篁シ?喝噲筝?筝?噲莟≧兄???蘂?紊?????????緒????醇??筝???∵??篋?筝?????????????号????? +??? 絋??????????鐚??櫆札??贋・絨??????醇兄?????医噲莟≧??絮????膠誌??箴?絋?鐚?羞糸??筝?筝??亥????号??鐚? +??? 篏睡??????? +??? 篏睡??薩??? +筝?膸ф?睡?御??鐚????絽後??莚ヤ??????????ñ?????鐚????筝榊薩??推戎緇?篁g????顔?上????Ǎ??膸ф?水?括鎧??奝????????鐚?綛銀??綺????篋???岩肩膠私札???菴?筝?瓜?????????絎?箴?鐚?莚桁?????鐚?GOF95鐚?膃?31蕁居悉???臀?蕁居嫉t.cn/RqrC8Yo鐚緒????? +莅乗?≧─綣鋇堺??篁シ??箴?膃サ??腱???????号??鐚?篁ユ?壩??????????逸??菴?茵???駈????ï??筝?筝?噲莟∞???????緒??菴?腱???号??絨掩?壚信薀医?????篆勰グ??Ǎ??Decorator鐚?罔≦????遵??篁ラ??????????劫???筝?篌?綵怨????銀??絲壕院鐚?????????医???????醇兄?????遺??筝?噲莟>賢鐚?莚桁?????鐚?GOF95鐚?膃?196蕁居悉鐚???? +???侮紊?膽?腮?莚左??筝昭和??篏睡??絖?膠糸??鐚?膸ф?随????ュ???ー篆勰グ???罔≦???莚桁?????鐚?GOF95鐚?膃?198蕁居悉鐚???? +???Python筝昭和?????篁サ櫆札鐚?綛銀??綺?莚ワ??篏睡?????臀勛??篆勰グ????号?с??筝?筝?Python篆勰グ???絨掩??噲Python莚中?????筝?筝??劫????劫??鐚????篋???ï??筝?筝?瓜?????号???????醇?亥??茵?筝削???????????篏睡??薩??帥??篁?絎??ー???茹?綺??ヨ?鐚? +Python篆勰グ?????壚??筝?櫝?????絲壕院鐚???醇?違????号?????膠誌??鐚??・???筝?筝??醇?医噲莟?fin篏?筝肴????ワ??綛区??????Ί??筝??醇?医噲莟? ???菴??????括???櫆札絨?篁私????傑??菴?篋?絮???х???櫝?????絲壕院綵?篏?筝?筝ŭ信薀医?????????1腴????膃?2腴?筝上群膸??????医??篏?篏睡?????臀勛??property篆勰グ???份筝?筝??号??茵?ー筝坂??筝????????????5.4???鐚????篁サ??絖???絋?篏?絎??ー???篏睡?????篁セ??訓???篆勰グ?????? +篆勰グ???罔≦?????Python篆勰グ???箙???翫攻筝???壚??絲剛?????膈?篁桁?括鎧???Python篆勰グ????遵?????絎????筝?罸?篆勰グ???罔≦?鎀?緇?紊?鐚???銀賢箙?筝?絨掩?????ー篆勰グ???罔≦?? +""" +from monkey_print2 import print + +class Foo: + def f1(self): + print("original f1") + + def f2(self): + print("original f2") + + +class Foo_decorator: + def __init__(self, decoratee): + self._decoratee = decoratee + + def f1(self): + print("before run f1") + self._decoratee.f1() + print("after run f1") + + def __getattr__(self, name): + return getattr(self._decoratee, name) + +if __name__ == '__main__': + u = Foo() + v = Foo_decorator(u) + v.f1() + v.f2() \ No newline at end of file diff --git "a/py_design/347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-351円200円202円351円205円215円345円231円250円346円250円241円345円274円217円.py" "b/py_design/347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-351円200円202円351円205円215円345円231円250円346円250円241円345円274円217円.py" new file mode 100644 index 0000000..743dcf5 --- /dev/null +++ "b/py_design/347円273円223円346円236円204円345円236円213円346円250円241円345円274円217円-351円200円202円351円205円215円345円231円250円346円250円241円345円274円217円.py" @@ -0,0 +1,73 @@ +# -*- coding: utf-8 -*- +# @Author : ydf +# @Time : 2019年10月8日 0008 17:39 +""" +?????????罔≦???Adapter Pattern鐚???壚??筝坂犬筝ŭ????弱俉????・??????雁??罅ユ?????菴?腱?膠糸?????莅乗?≧─綣鎡?篋?膸???????罔≦???絎?膸????篋?筝や肩??ス???・?????????純?? + +菴?腱?罔≦?闉??????遺??筝???筝????膠誌??莚ョ瓜茣?茣e????ョ?ス????????筝???弱俉????・??????純??筝鞘肩???絎????箴?絖?鐚?莚糸?≦????壚??筝阪??絖???≦??膃?莅井?コ????雁?????????????????絨????絖???≧????ヨ嚞??≦?Ǎ?????絨?莚糸?≦???????ョ??莅井?ロ??菴???桁葦?櫆札???菴?膃?莅井?シ?ヨ嚞??????絖???<?? + +""" +from monkey_print2 import print + + +class Dog: + def __init__(self, name): + self.name = name + + def wangwang(self): + print('my name is' + self.name + '?????????羆?迂羆ŝ????????') + + def dog_run(self): + print(f'{self.name} is running') + + +class Cat: + def __init__(self, name): + self.name = name + + def miaomiao(self): + print('my name is' + self.name + '???????????球?球?泣????????') + + def cat_run(self): + print(f'{self.name} is running') + + +class Sheep: + def __init__(self, name): + self.name = name + + def miemie(self): + print('my name is' + self.name + '???????????ï?í????????') + + def sheet_run(self): + print(f'{self.name} is running') + + +class Adapter: + def __init__(self, adapted_methods): + + self.__dict__.update(adapted_methods) + + def speak(self): + pass + + def run(self): + pass + + +def main(): + animals = [] + dog = Dog('??肴刈') + cat = Cat('紊ц?悟??') + sheep = Sheep('???羇?羇?') + animals.append(Adapter({'speak': dog.wangwang, 'run': dog.dog_run})) + animals.append(Adapter({'speak': cat.miaomiao, 'run': cat.cat_run})) + animals.append(Adapter({'speak': sheep.miemie, 'run': sheep.sheet_run})) + + for a in animals: + a.speak() + a.run() + + +if __name__ == "__main__": + main() diff --git "a/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-344円270円255円344円273円213円350円200円205円346円250円241円345円274円217円.py" "b/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-344円270円255円344円273円213円350円200円205円346円250円241円345円274円217円.py" new file mode 100644 index 0000000..1c4a3ed --- /dev/null +++ "b/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-344円270円255円344円273円213円350円200円205円346円250円241円345円274円217円.py" @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +# @Author : ydf +# @Time : 2019年10月9日 0009 11:13 + +""" +筝TEL?????罔≦??(Mediator Pattern):???筝?筝?噲莟≧?ュ??茖?筝?膤糸?????絲壕院篋や??鐚?筝TEL?????篏水??絲壕院筝????荀???丞ず??亥?娯??綣???Ǎ??篁????篏粋??????丈?o?????筝??櫆札??ス????井?劫??絎?篁コ????雁??篋や??. +""" +from monkey_print2 import print +class ChatRoom: + @staticmethod + def show_message(user,msg): + print(f'{user.name} 莚器?? {msg}') + +class User: + def __init__(self,name): + self.name = name + + def send_msg(self,msg): + ChatRoom.show_message(self,msg) + +if __name__ == '__main__': + user1 = User('絨????') + user2 = User('絨靮?') + user1.send_msg('??î??絅?') + user2.send_msg('???筝?絅?') + + """ + "D:/coding2/python36patterns/茵?筝阪??罔≦??-筝TEL?????罔≦??.py:12" 11:21:04 絨???? 莚器?? ??î??絅? +"D:/coding2/python36patterns/茵?筝阪??罔≦??-筝TEL?????罔≦??.py:12" 11:21:04 絨靮? 莚器?? ???筝?絅? + """ \ No newline at end of file diff --git "a/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円217円221円345円270円203円350円256円242円351円230円205円346円250円241円345円274円217円.py" "b/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円217円221円345円270円203円350円256円242円351円230円205円346円250円241円345円274円217円.py" new file mode 100644 index 0000000..056066f --- /dev/null +++ "b/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円217円221円345円270円203円350円256円242円351円230円205円346円250円241円345円274円217円.py" @@ -0,0 +1,80 @@ +# -*- coding: utf-8 -*- +# @Author : ydf +# @Time : 2019年10月9日 0009 10:39 + +"""???荀?腮?綺? ????????? +莅∫??-???絽?罔≦?????茹?絲????罔≦?閎?綽窮?娯室鐚?篏????????-???絽?罔≦?鋇昭和??莅∫???????????絽????箙???翫??篋?筝?絮?筝右?岩散鐚?筝?筝?←??処院??堺?ョ??篆≧?虁??綺?賢綽???? + +篏???九??羃≧??綽?荀?紊?訓腥? 2 ?????阪???????筝冴??Head First 莅乗?≧─綣????菴???ス????娯孔??遵??篋?鐚????絽?+莅∫??=茹?絲????罔≦???????倶?後???????恰?夌?倶????劫????????絽??????ャ?????罩ゅ?榊??筝?鐚???号?勤喭荐???号?э??菴?茵?絎??ー??喝檽?? + +絲号??茹?絲????罔≦????????23腱?膸???梧倘莅≧─綣??????≫???????サ??絽?莅∫??莅乗?≧─綣????阪??緇?絨???? +""" + +class Event: + def __init__(self): + self.client_list = {} + + def listen(self, key, fn): + if key not in self.client_list: + self.client_list[key] = [] + self.client_list[key].append(fn) + + def trigger(self, *args, **kwargs): + fns = self.client_list[args[0]] + + length = len(fns) + if not fns or length == 0: + return False + + for fn in fns: + fn(*args[1:], **kwargs) + + return False + + def remove(self, key, fn): + if key not in self.client_list or not fn: + return False + + fns = self.client_list[key] + length = len(fns) + + for _fn in fns: + if _fn == fn: + fns.remove(_fn) + + return True + + +# ?????ñ薩??推減絲壕院絎?茖? ???絽?-莅∫?? ?????? +class SalesOffice(Event): + def __init__(self): + super().__init__() + + +# ??号?勤??訓???羆?絎?箙?筝?筝??醇?逸??箴?篋?篁九?????絎????莪???? +def handle_event(event_name): + def _handle_event(*args, **kwargs): + print("Price is", *args, "at", event_name) + + return _handle_event + + +if __name__ == "__main__": + # ???綮?2筝???莪???醇?? + fn1 = handle_event("event01") + fn2 = handle_event("event02") + + sales_office = SalesOffice() + + # 莅∫??event01 ??? event02 菴?2筝ŭ??篁駈??綛銀??膸?絎???後?括?? 絎????????????醇?? + sales_office.listen("event01", fn1) + sales_office.listen("event02", fn2) + + # 綵?筝や肩篋?篁九???????九??鐚?茹?????????茵?膸?絎??????後?喝?醇?? + sales_office.trigger("event01", 1000) + sales_office.trigger("event02", 2000) + + sales_office.remove("event01", fn1) + + # ?????逸??False + print(sales_office.trigger("event01", 1000)) diff --git "a/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円221円275円344円273円244円346円250円241円345円274円217円.py" "b/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円221円275円344円273円244円346円250円241円345円274円217円.py" new file mode 100644 index 0000000..dcb6702 --- /dev/null +++ "b/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円221円275円344円273円244円346円250円241円345円274円217円.py" @@ -0,0 +1,90 @@ +# -*- coding: utf-8 -*- +# @Author : ydf +# @Time : 2019年10月9日 0009 9:29 +""" +??巡擦罔≦???Command Pattern鐚???壚??腱???井?勰o?????莅乗?≧─綣??絎?絮?篋?茵?筝阪??罔≦?????莚傑??篁ュ?巡擦???綵√?????茖劫??絲壕院筝昭和??綛銀??膸?莪????絲壕院???莪????絲壕院絲紙?上櫆札紊????莚ュ?巡擦????????????絲壕院鐚?綛倶??莚ュ?巡擦篌?膸???後?????絲壕院鐚?莚ュ噲莟≧?ц????巡擦??? + + +?ー???紊???医??????醇????ら?????篏??????順?狗?鞘札??活院鐚?篏????緇?紊?綛顔??鐚?篁私??莉壚散筝下`絎???巡??絖??????ら?? +???篏??????ら?????篏??????1974綛翫????ョ??鐚?莚桁?????臀?蕁居嫉t.cn/Rqr3N22鐚緒??鐚?篏?Fortran???Lisp????????ï??1957 +綛翫??1958綛翫葦綏峨??綮坂????ら?????篏?鐚?莚桁?????臀?蕁居嫉t.cn/Rqr3067鐚緒??鐚?菴?筝ら??喭荐?篁????←篋阪洪羈?篏睡????? +????d??綛顔??鐚???????綽?筝???割戎???綺????蒐篁吟????壚??筝?筝???莚姒???????隙??羃>??箙?箴炊?傑?劫????巡信罩e????? +""" +import os + +verbose = True + + +class RenameFile: + + def __init__(self, path_src, path_dest): + self.src, self.dest = path_src, path_dest + + def execute(self): + if verbose: + print("[renaming '{}' to '{}']".format(self.src, self.dest)) + os.rename(self.src, self.dest) + + def undo(self): + if verbose: + print("[renaming '{}' back to '{}']".format(self.dest, self.src)) + os.rename(self.dest, self.src) + + +class CreateFile: + + def __init__(self, path, txt='hello world\n'): + self.path, self.txt = path, txt + + def execute(self): + if verbose: + print("[creating file '{}']".format(self.path)) + with open(self.path, mode='w', encoding='utf-8') as out_file: + out_file.write(self.txt) + + def undo(self): + delete_file(self.path) + + +class ReadFile: + + def __init__(self, path): + self.path = path + + def execute(self): + if verbose: + print("[reading file '{}']".format(self.path)) + with open(self.path, mode='r', encoding='utf-8') as in_file: + print(in_file.read(), end='') + + +def delete_file(path): + if verbose: + print("deleting file '{}'".format(path)) + os.remove(path) + + +def main(): + orig_name, new_name = 'file1', 'file2' + + commands = [] + for cmd in CreateFile(orig_name), ReadFile(orig_name), RenameFile(orig_name, new_name): + commands.append(cmd) + + [c.execute() for c in commands] + + answer = input('reverse the executed commands? [y/n] ') + + if answer not in 'yY': + print("the result is {}".format(new_name)) + exit() + + for c in reversed(commands): + try: + c.undo() + except AttributeError as e: + pass + + +if __name__ == '__main__': + main() diff --git "a/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円244円207円345円277円230円345円275円225円346円250円241円345円274円217円.py" "b/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円244円207円345円277円230円345円275円225円346円250円241円345円274円217円.py" new file mode 100644 index 0000000..fe68882 --- /dev/null +++ "b/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円244円207円345円277円230円345円275円225円346円250円241円345円274円217円.py" @@ -0,0 +1,81 @@ +# -*- coding: utf-8 -*- +# @Author : ydf +# @Time : 2019年10月9日 0009 11:22 + +""" +紊?綽?綵?罔≦?? +紊?綽?綵?罔≦???Memento Pattern鐚?篆?絖?筝?筝?噲莟∞?????筝??倶??鐚?篁ヤ梢?????綵??????九????√??絲壕院???紊?綽?綵?罔≦?鎡?篋?茵?筝阪??罔≦????? + +篁?膸? +?????常?????筝???翫?鎞?茖???х????????筝?鐚?????キ筝?筝?噲莟∞?????????倶??鐚?綛九??唫絲壕院箙?紊?篆?絖?菴?筝??倶????? + +筝肢??茹e?鰹?????莪?紊?綽?綵?罔≦?鎞掩????筝???翫?鎞?茖??????????筝?鐚?????キ筝?筝?噲莟∞?????????倶??鐚?綛九??唫絲壕院箙?紊?篆?絖?菴?筝??倶??鐚?菴???桁櫆札???篁ュ??絨?絲壕院??√????医?????篆?絖??????倶????? + +篏???銀戎??Ǎ??緇?紊???九?????篁シ?紙?奝??荀?莅医??筝?筝?噲莟∞?????????倶??鐚?菴???桁???????勛??絨掩?壚減篋????莅悟????桁??羔?筝?隋????????????莚夌?????篏?鐚???遵????√????遺?????????????倶??鐚?篏水??篁????"?????????"?櫔????? + +絋?篏?茹e?鰹?????菴?筝?筝???綽?綵?膠私?????絖????絲壕院??倶????? + +??渇?勌撮???鐚?絎∽?隙??筝?紊?綽?綵?膠肢????鐚?筝?紊?綽?綵?膊∞??膠肢??????? + +綺????絎?箴?鐚? 1???????????壔?? 2??????羝御????句??絖?罅c?? 3???Windows ?????? ctri + z??? 4???IE 筝下??????????? 4?????井???????篋???∞?∞????? + +篌???刻?? 1???膸??????傑??箴?篋?筝?腱??櫆札??√????倶???????阪?駈???櫆札篏睡????決?遵??罸?莨???剛梢??医????井??筝????兏????倶????? 2???絎??ー篋?篆≧?夌??絨?茖?鐚?篏水???????隙?????荀???喝????倶?????篆?絖?膸??????? + +膽榊?刻??羔????莎?羣????絋????膠紫?????????????颷?紊?鐚???水??篌???????罸?莨?紊х??莎?羣?鐚????筝?罸鋇?罨>??絖???巡??羔????筝?絎???????絖???? + +篏睡????堺?姒?? 1??????荀?篆?絖?/??√????井?勛????後?括?倶????堺?壔?? 2??????箴?筝?筝?櫔??羯???????篏???? + +羈???鋋?蕁刻?? 1???筝坂??膃???菴?嘘??劫?????鐚?菴?荀?紜????筝?筝??∞??紊?綽?綵????膠祉?? 2???筝坂?????膾???絖?鐚??櫆戎?????????罔≦??+紊?綽?綵?罔≦????? +""" +from monkey_print2 import print +#!/usr/bin/env python +# -*- coding:utf-8 -*- + +__author__ = 'Andy' +""" +紊ц??莅乗?≧─綣? +莅乗?≧─綣???????紊?綽?綵?罔≦?? +紊?綽?綵?罔≦??(Memento Pattern):筝???翫?鎞?茖???х????????筝?????キ筝?筝?噲莟∞?????????倶??鐚?綛九??唫絲壕院箙?紊?篆?絖?菴?筝??倶??,菴???桁群膸????絨怨櫔??莚ュ噲莟≧?√????医?????篆?絖??????倶?? +""" +from monkey_print2 import print +# ???莎隙査膠? +class Originator(object): + + def __init__(self, state): + self.state = state + + def create_memento(self): + return Memento(self.state) + + def set_memento(self, memento): + self.state = memento.state + + def show(self): + print("綵??????倶?? ", self.state) + +# 紊?綽?綵?膠? +class Memento(object): + + def __init__(self, state): + self.state = state + +# 膊∞?????膠? +class Caretaker(object): + + def __init__(self,memento): + self.memento = memento + + + +if __name__ == "__main__": + # ???紮???倶?? + originator = Originator(state='On') + originator.show() + # 紊?綽?綵? + caretaker = Caretaker(originator.create_memento()) + # 篆勖?合?倶?? + originator.state = 'Off' + originator.show() + # 紊??????倶?? + originator.set_memento(caretaker.memento) + originator.show() \ No newline at end of file diff --git "a/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円273円266円350円277円237円350円256円241円347円256円227円347円274円223円345円255円230円346円250円241円345円274円217円.py" "b/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円273円266円350円277円237円350円256円241円347円256円227円347円274円223円345円255円230円346円250円241円345円274円217円.py" new file mode 100644 index 0000000..294497e --- /dev/null +++ "b/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-345円273円266円350円277円237円350円256円241円347円256円227円347円274円223円345円255円230円346円250円241円345円274円217円.py" @@ -0,0 +1,95 @@ +# -*- coding: utf-8 -*- +# @Author : ydf +# @Time : 2019年10月8日 0008 17:12 +""" +23腱?莅乗?≧─綣鋇中押????????域??筝?腱???? +???篋???ц??篁d桟罸?莨?紊х????堺?壔???櫆札?????ð宛箙?膽?絖???????膽?絖?筝?罧究?狗?眼?? + +""" +import sys +import time +from functools import wraps + +from monkey_print2 import print + +class cached_class_property(object): + """膠糸????х??絖?茖?薀医??,?????号?????膸????膽?絖?筝榊瓜絮????""" + + def __init__(self, func): + self.func = func + + def __get__(self, obj, cls): + if obj is None: + return self + value = self.func(obj) + setattr(cls, self.func.__name__, value) + return value + + +# noinspection PyPep8Naming +class cached_instance_property(object): + """絎?箴?絮???х??絖?茖?薀医?Ǎ???????号?????膸????膽?絖?筝阪??箴?絮????""" + + def __init__(self, func): + self.func = func + + def __get__(self, obj, cls): + print(obj, cls) + if obj is None: + return self + value = obj.__dict__[self.func.__name__] = self.func(obj) + return value + + + +class FunctionResultCacher: + """ + 篏水?醇?亥??膸????膽?絖????絎??????狗?眼??箴?絋????5?????????綏牙????ヨ哆篋?羞怨?括??紊ð??鐚????罨∴???????ュぉ羂??????醇?亥?贋・菴????箙??????ヨ哆???紊ð????? + + """ + func_result_dict = {} + """ + { + (f1,(1,2,3,4)):(10,1532066199.739), + (f2,(5,6,7,8)):(26,1532066211.645), + } + """ + + @classmethod + def cached_function_result_for_a_time(cls, cache_time: float): + """ + ??醇?亥??膸????膽?絖?筝?罧究?狗?頑??薀医??,筝?荀?茖?薀医???????膸??????虁??紊у??膃?顕????????銀????????紊у??絖??????井?勛?????筝??????醇?遺????≪?? + :param cache_time :膽?絖??????狗?? + :type cache_time : float + """ + + def _cached_function_result_for_a_time(fun): + + @wraps(fun) + def __cached_function_result_for_a_time(*args, **kwargs): + # print(cls.func_result_dict) + # if len(cls.func_result_dict)> 1024: + if sys.getsizeof(cls.func_result_dict)> 100 * 1000 * 1000: + cls.func_result_dict.clear() + + key = cls._make_arguments_to_key(args, kwargs) + if (fun, key) in cls.func_result_dict and time.time() - cls.func_result_dict[(fun, key)][1] < cache_time: + return cls.func_result_dict[(fun, key)][0] + else: + print('??醇?? [{}] 罩ゆ?筝???巡戎?????絖?'.format(fun.__name__)) + result = fun(*args, **kwargs) + cls.func_result_dict[(fun, key)] = (result, time.time()) + return result + + return __cached_function_result_for_a_time + + return _cached_function_result_for_a_time + + @staticmethod + def _make_arguments_to_key(args, kwds): + key = args + if kwds: + sorted_items = sorted(kwds.items()) + for item in sorted_items: + key += item + return key # ???腑??櫆札??後????? \ No newline at end of file diff --git "a/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-346円250円241円346円235円277円346円250円241円345円274円217円.py" "b/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-346円250円241円346円235円277円346円250円241円345円274円217円.py" new file mode 100644 index 0000000..f6cf7ea --- /dev/null +++ "b/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-346円250円241円346円235円277円346円250円241円345円274円217円.py" @@ -0,0 +1,75 @@ +# -*- coding: utf-8 -*- +# @Author : ydf +# @Time : 2019/10/9 0009 10:28 +"""???荀?腮?綺? ??????????????? +???絽悟?????????句??筝?腱?莅乗?≧─綣??莚雁?巡??絨掩?夌薩??帥??膈???ユ─綣顓雁就篋?絨掩?夌???????? +??????oop 4罩ヨ習?????サ?????????????\????????????翫洪??? + +1.??堺?姒?? + +?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? 1.1 綵?紊?筝???羈????膠糸???ー膠私室?????後????肢???????九????? + +?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? 1.2 ???絖?膠私賢絎??ー膊?羈??????î????鎞????紊?篁g???????九????? + +?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? 1.3 ?櫆札莅ï??膠糸?ñ???????絎??ー茵?筝堺?ュ??箙?紊?筝???羈??????九????? + +2.??勛??鐚? + +?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? 2.1 篏睡????堺?シ??篏?絎?箙?膊?羈????罅???吟?? + +?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? 2.2 ?????医??箙?絖?膠紫?????篋????篏?鐚??????????篆勖?合??羈????膸??????? + +?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? 2.3 絎??ー篁g????????綛狗?水?????紊?綏ヤ?? + +?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? 2.4 ??ñ????????・?吨??絎??ー + +""" + +from abc import ABCMeta, abstractmethod +from monkey_print2 import print + + +# ??処院??号?? AbstractClass +class AbstractClass(metaclass=ABCMeta): + def __init__(self): + pass + + @abstractmethod + def operation1(self): + pass + + @abstractmethod + def operation2(self): + pass + + def operation3(self): + print('???篏?3') + + # 罔≧?炊?号?? tmplate_method() + def template_method(self): + print("Defining the Algorithm.Operation1 follows Operation2") + self.operation2() + self.operation1() + self.operation3() + + +# ??隙??膠? ConcreteClass +class ConcreteClass(AbstractClass): + def operation1(self): + print("My Concrete Operation1") + + def operation2(self): + print("Operation 2 remains same") + + +if __name__ == '__main__': + concreate = ConcreteClass() + concreate.template_method() + + """ + "D:/coding2/python36patterns/茵?筝阪??罔≦??-罔≧?炊─綣?.py:47" 10:35:10 Defining the Algorithm.Operation1 follows Operation2 +"D:/coding2/python36patterns/茵?筝阪??罔≦??-罔≧?炊─綣?.py:59" 10:35:10 Operation 2 remains same +"D:/coding2/python36patterns/茵?筝阪??罔≦??-罔≧?炊─綣?.py:56" 10:35:10 My Concrete Operation1 +"D:/coding2/python36patterns/茵?筝阪??罔≦??-罔≧?炊─綣?.py:43" 10:35:10 ???篏?3 + + """ diff --git "a/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-347円212円266円346円200円201円346円250円241円345円274円217円.py" "b/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-347円212円266円346円200円201円346円250円241円345円274円217円.py" new file mode 100644 index 0000000..bd5e206 --- /dev/null +++ "b/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-347円212円266円346円200円201円346円250円241円345円274円217円.py" @@ -0,0 +1,82 @@ +# -*- coding: utf-8 -*- +# @Author : ydf +# @Time : 2019/10/9 0009 10:08 +""" +????倶??罔≦???State Pattern鐚?筝昭和??膠紫??茵?筝堺???坂??絎??????倶????劫????????菴?腱?膠糸?????莅乗?≧─綣鎡?篋?茵?筝阪??罔≦????? + +????倶??罔≦?鋇昭和?????篁サ??綮肴;腓阪??腱???倶?????絲壕院???筝?筝???筝咲???????倶??絲壕院??劫???????劫????? context 絲壕院??? +""" + + +class State(object): + """Base state. This is to share functionality""" + + def scan(self): + """Scan the dial to the next station""" + self.pos += 1 + if self.pos == len(self.stations): + self.pos = 0 + print("Scanning... Station is", self.stations[self.pos], self.name) + + +class AmState(State): + def __init__(self, radio): + self.radio = radio + self.stations = ["1250", "1380", "1510"] + self.pos = 0 + self.name = "AM" + + def toggle_amfm(self): + print("Switching to FM") + self.radio.state = self.radio.fmstate + + +class FmState(State): + def __init__(self, radio): + self.radio = radio + self.stations = ["81.3", "89.1", "103.9"] + self.pos = 0 + self.name = "FM" + + def toggle_amfm(self): + print("Switching to AM") + self.radio.state = self.radio.amstate + + +class Radio(object): + """A radio. It has a scan button, and an AM/FM toggle switch.""" + + def __init__(self): + """We have an AM state and an FM state""" + self.amstate = AmState(self) + self.fmstate = FmState(self) + self.state = self.amstate + + def toggle_amfm(self): + self.state.toggle_amfm() + + def scan(self): + self.state.scan() + + +# Test our radio out +if __name__ == '__main__': + radio = Radio() + actions = [radio.scan] * 2 + [radio.toggle_amfm] + [radio.scan] * 2 + actions = actions * 2 + + for action in actions: + action() + + """ + Scanning... Station is 1380 AM + Scanning... Station is 1510 AM + Switching to FM + Scanning... Station is 89.1 FM + Scanning... Station is 103.9 FM + Scanning... Station is 81.3 FM + Scanning... Station is 89.1 FM + Switching to AM + Scanning... Station is 1250 AM + Scanning... Station is 1380 AM + """ \ No newline at end of file diff --git "a/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-347円231円273円350円256円260円346円250円241円345円274円217円.py" "b/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-347円231円273円350円256円260円346円250円241円345円274円217円.py" new file mode 100644 index 0000000..d767e2d --- /dev/null +++ "b/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-347円231円273円350円256円260円346円250円241円345円274円217円.py" @@ -0,0 +1,41 @@ +# -*- coding: utf-8 -*- +# @Author : ydf +# @Time : 2019/10/9 0009 13:53 +""" +??肢佖罔≦??????????筝?櫆札??守‐???箴?罔≦????????綮阪??膊∞????? +""" +class RegistryHolder(type): + + REGISTRY = {} + + def __new__(cls, name, bases, attrs): + new_cls = type.__new__(cls, name, bases, attrs) + """ + Here the name of the class is used as key but it could be any class + parameter. + """ + cls.REGISTRY[new_cls.__name__] = new_cls + return new_cls + + @classmethod + def get_registry(cls): + return dict(cls.REGISTRY) + + +class BaseRegisteredClass(metaclass=RegistryHolder): + """ + Any class that will inherits from BaseRegisteredClass will be included + inside the dict RegistryHolder.REGISTRY, the key being the name of the + class and the associated value, the class itself. + """ + + +if __name__ == "__main__": + print(sorted(RegistryHolder.REGISTRY)) + + class ClassRegistree(BaseRegisteredClass): + def __init__(self, *args, **kwargs): + pass + + + print(sorted(RegistryHolder.REGISTRY)) \ No newline at end of file diff --git "a/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-347円255円226円347円225円245円346円250円241円345円274円217円.py" "b/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-347円255円226円347円225円245円346円250円241円345円274円217円.py" new file mode 100644 index 0000000..4a903ea --- /dev/null +++ "b/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-347円255円226円347円225円245円346円250円241円345円274円217円.py" @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +# @Author : ydf +# @Time : 2019/10/9 0009 10:12 +"""???荀?腮?綺? ???????????? + +膈???ユ─綣??Strategy pattern鐚?藜???延戎???紊?腱?膊?羈???ヨВ??割??筝??勰??鐚???倶?????膾х?号?ф?虁?遵??????? +茵???狗???????医????∝??羈?鐚?絎∽?欠?篁g??絲劫?????????????ワ????????罩わ??絋????篏????筝ょ??膊?羈?鐚?綛銀????ラ????銀賢筝? +腱?絲劫????颴???ユ???????翫ソ鐚??Ί??腱?絲劫ぇ??颴???ユ???????翫ソ鐚?????櫆札篏睡??????ユ─綣??????茵???九?坂??莨???ユ?? +????喝??篏睡???????膊?羈? + +篁ヤ??羲?腓榊????ョ瓜??????python筝上?醇?遺????壚??膈???シ?????膊?????????灸?????膈???ユ─綣鎞???醇?井?セ昆篏?筝阪Ί??筝??醇??/??号???????ュ????喝檽?? + +""" + +from monkey_print2 import print + +# 膈???ユ─綣? +class Strategy(): + def process(self): + pass + + +class FaultStrategy(Strategy): + def process(self): + print("fault") + + +class NormalStrategy(Strategy): + def process(self): + print("normal") + + +class Park(): + def __init__(self, strategy): + self.__strategy = strategy + + def geoProcess(self): + self.__strategy.process() + + +if __name__ == '__main__': + p = Park(NormalStrategy()) + p.geoProcess() + p = Park(FaultStrategy()) + p.geoProcess() + + """ + "D:/coding2/python36patterns/茵?筝阪??罔≦??-膈???ユ─綣?.py:30" 10:23:25 normal +"D:/coding2/python36patterns/茵?筝阪??罔≦??-膈???ユ─綣?.py:25" 10:23:25 fault + """ \ No newline at end of file diff --git "a/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円247円202円345円257円237円350円200円205円346円250円241円345円274円217円-351円207円215円346円226円260円345円256円236円347円216円260円346円227円245円345円277円227円347円263円273円347円273円237円.py" "b/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円247円202円345円257円237円350円200円205円346円250円241円345円274円217円-351円207円215円346円226円260円345円256円236円347円216円260円346円227円245円345円277円227円347円263円273円347円273円237円.py" new file mode 100644 index 0000000..07f3c45 --- /dev/null +++ "b/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円247円202円345円257円237円350円200円205円346円250円241円345円274円217円-351円207円215円346円226円260円345円256円236円347円216円260円346円227円245円345円277円227円347円263円273円347円273円237円.py" @@ -0,0 +1,76 @@ +# -*- coding: utf-8 -*- +# @Author : ydf +# @Time : 2019/10/9 0009 9:39 + +"""???荀?腮?綺? ????????? +綵?絲壕院??翫?????筝?絲劫????括鎧??駈?????篏睡????絲????罔≦???Observer Pattern鐚????罸?絋?鐚?綵?筝?筝?噲莟∴←篆勖?号?駈?????篌??????????ュ?????箴?莎?絲壕院???茹?絲????罔≦?鎡?篋?茵?筝阪??罔≦????? +?????駈?????篁サ????????筝?筝?噲莟∞????倶????劫????倶?贋?医Ϊ??筝?膸?絲壕院??? + +莚頑??箙?紊???処院???网?綽居??莚雁?劫?隙?????絨掩?壚札??ュ??筝坂??鐚????篋堺??print綵??????ュ????Ǎ???????∝????阪???後??紊э????ュ??筝?篁??櫆札???streamhandler???filehandler鐚?菴????mailhandler httphandler +膈????篋睡???????箙?handler???logger debug??九???????Е??????腱?handler???emit??号????? +???筝?篌???ュ??筝????茹f?ュ??鐚?絲?logger addHandler???腱?handler??級?寂????ラ?????綛峨??鐚????筝肢????壚?????茹?絲????罔≦?????????????? +絽????筝上??箴?絖???壩・菴????絎??????鋈?鐚?筝???∝?????篏睡????絲????罔≦???????井─???絎??ー筝?筝ŭ耳??ュ???????? +""" +import abc +from monkey_print2 import print + + +class AbstractHandler(metaclass=abc.ABCMeta): + @abc.abstractmethod + def emit(self, record): + pass + + +class Logger: + def __init__(self, logger_name): + self.name = logger_name + self.handlers = [] + + def add_handler(self, handler): + self.handlers.append(handler) + + def log(self, record: str): + for hr in self.handlers: + hr.emit(f'{self.name} -- {record}') + + +class StreamHandler(AbstractHandler): + def emit(self, record): + print(f' {record} ?ァ??九佀?????') + + +class FileHandler(AbstractHandler): + def emit(self, record): + print(f' {record} ???篁九?????') # ?Ŭ?壚減篋?羲?腓阪????ユ??篁駈?????print罔≧?????篌????ー???絽????荀????羝?罐?菴?????????勛??筝????print??? + + +class MailHandler(AbstractHandler): + def emit(self, record): + print(f' {record} ?????勌散膸????篋?') # ?Ŭ?壚減篋?羲?腓阪????勌散鐚????print罔≧?????篌????ー???絽????荀????羝?罐?菴?????????勛??筝????print??? + + +class DingdingHandler(AbstractHandler): + def emit(self, record): + print(f' {record} ????????阪??篋阪??菴??媺?????膸?臂ら??') # ?Ŭ?壚減篋?羲?腓阪??????????阪??篋堺????姒?????print罔≧?????篌????ー???絽????荀????羝?罐?菴?????????勛??筝????print??? + + +if __name__ == '__main__': + logger1 = Logger('a') + logger1.add_handler(StreamHandler()) + logger1.add_handler(FileHandler()) + logger1.add_handler(MailHandler()) + logger1.log('?????????????') + + logger2 = Logger('b') + logger2.add_handler(StreamHandler()) + logger2.add_handler(DingdingHandler()) + logger2.log('??????????????????') + + """ + ?櫆札?????井?ュ?????絽悟?究柑鐚??櫆札???????????ï??筝?handler鐚?箴?絋???ュ??a篌? ?ァ??九佀????亥?? ?????ユ??篁? ?????勌散鐚???ュ??b?ァ??九佀????? ?????????羔???壔?? + "D:/coding2/python36patterns/茵?筝阪??罔≦??-茹?絲????罔≦??.py:36" 10:00:19 a -- ????????????? ?ァ??九佀????? + "D:/coding2/python36patterns/茵?筝阪??罔≦??-茹?絲????罔≦??.py:40" 10:00:19 a -- ????????????? ???篁九????? + "D:/coding2/python36patterns/茵?筝阪??罔≦??-茹?絲????罔≦??.py:45" 10:00:19 a -- ????????????? ?????勌散膸????篋? + "D:/coding2/python36patterns/茵?筝阪??罔≦??-茹?絲????罔≦??.py:36" 10:00:19 b -- ?????????????????? ?ァ??九佀????? + "D:/coding2/python36patterns/茵?筝阪??罔≦??-茹?絲????罔≦??.py:49" 10:00:19 b -- ?????????????????? ????????阪??篋阪??菴??媺?????膸?臂ら?? + """ diff --git "a/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円247円243円351円207円212円345円231円250円346円250円241円345円274円217円.py" "b/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円247円243円351円207円212円345円231円250円346円250円241円345円274円217円.py" new file mode 100644 index 0000000..7d60aa2 --- /dev/null +++ "b/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円247円243円351円207円212円345円231円250円346円250円241円345円274円217円.py" @@ -0,0 +1,65 @@ +# -*- coding: utf-8 -*- +# @Author : ydf +# @Time : 2019/10/9 0009 9:35 +""" +???荀?腮?綺? ?????? + +茹i?????罔≦???Interpreter Pattern鐚????箴?篋?莚?篌域喭荐????莚中?????茵?松綣??????劫???絎?絮?篋?茵?筝阪??罔≦?????菴?腱?罔≦?鎘??ー篋?筝?筝?;莨上???・????莚ユ・?呃В???筝?筝??劫?????筝?筝???????菴?腱?罔≦?頮?????? SQL 茹f?????膃?垸?????綣????膈???? + +絲号?鋇????????ヨ?鐚???喝?????篁ヤ??筝ょ??筝????????????桁??膠祉?? +??? ??堺?ス????件??菴?膠紫????桁Û???????遵????下?頑??篏睡??綺???????篁?篁コ?????罨∵?怨お紊???狗?顔??臀勖??絖???綺? +??????????????絲剛??篁シ?ヨ?鐚???堺?ス?????羈?絨沿恭紊?篋???? +??? 蕭?膾х????件??菴?篋??????件??絎????筝????絽御??????逸??筝?篁??????沿換蘂?紊??????狗?翫6箙?絋?篏?篏睡??綺?????? +蕭?膾х?号?с??絋??????ラ??絖???箙??????遵????遺札筝?絅遵??鐚?篁?篁ス????割???サ絖???筝?腱????臀卡??????????ロ?? +莚左????? +??? ??遵????翫ソ??井ァ??銀??筝?????? +??? 篁ユ?翫ソ?????劫?頫?松??恰?? +??? ???蕭????篋у?? +茹i????Ǎ??Interpreter鐚?罔≦?鋌???遵??莎桁???????蕭?膾х????欠????頑僑???菴??????筝肴В??????罔≦???????????筝? +荀??????恰?虁份??????膾х????桁??蘂????筝?絎銀戎???筝????????????莚左????ヨ;莨丈?恰???????区??鐚?篁?箙???壚??腱?膊???????莚? +荐?鐚?絲剛?????篁ス?????羆???ヨ?鐚?筝?腱?膊???????莚左??絨掩?壩押膽?腮?莚左????d??紊???????莚左?? +""" +from monkey_print2 import print + + +class PlayContext(): + play_text = None + + +class Expression(): + def interpret(self, context): + if len(context.play_text) == 0: + return + else: + play_segs = context.play_text.split(" ") + for play_seg in play_segs: + pos = 0 + for ele in play_seg: + if ele.isalpha(): + pos += 1 + continue + break + play_chord = play_seg[0:pos] + play_value = play_seg[pos:] + self.execute(play_chord, play_value) + + def execute(self, play_key, play_value): + pass + + +class NormGuitar(Expression): + def execute(self, key, value): + print("Normal Guitar Playing--Chord:%s Play Tune:%s" % (key, value)) + + +if __name__ == "__main__": + context = PlayContext() + context.play_text = "C53231323 Em43231323 F43231323 G63231323" + guitar = NormGuitar() + guitar.interpret(context) + """ + "D:/coding2/python36patterns/茵?筝阪??罔≦??-茹i?????罔≦??.py:29" 09:37:28 Normal Guitar Playing--Chord:C Play Tune:53231323 + "D:/coding2/python36patterns/茵?筝阪??罔≦??-茹i?????罔≦??.py:29" 09:37:28 Normal Guitar Playing--Chord:Em Play Tune:43231323 + "D:/coding2/python36patterns/茵?筝阪??罔≦??-茹i?????罔≦??.py:29" 09:37:28 Normal Guitar Playing--Chord:F Play Tune:43231323 + "D:/coding2/python36patterns/茵?筝阪??罔≦??-茹i?????罔≦??.py:29" 09:37:28 Normal Guitar Playing--Chord:G Play Tune:63231323 + """ diff --git "a/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円256円277円351円227円256円350円200円205円346円250円241円345円274円217円.py" "b/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円256円277円351円227円256円350円200円205円346円250円241円345円274円217円.py" new file mode 100644 index 0000000..8392fea --- /dev/null +++ "b/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円256円277円351円227円256円350円200円205円346円250円241円345円274円217円.py" @@ -0,0 +1,179 @@ +# -*- coding: utf-8 -*- +# @Author : ydf +# @Time : 2019/10/9 0009 11:31 + +""" +1???筝坂??箙?荀?篏睡??倘莅≧─綣?? +篁????莅坂????ヨ?鐚?莅乗?≧─綣????噲腮?綺???勰??罸?莨?絅順??茹e?恰?号??????????亥??腮?綺??????醇?丞???????域??菴?篋???勰??鐚?綛銀??篁?篁コ戎?????篋?茹e?恰?号???サ紊????菴?篋???勰????????篁ュ??篏??????医????欠????勰??鐚?筝坂??箙?荀??サ??括?????綮坂??筝?В??恰?号?????筝???夌??ー??????綛銀??茴????????壩????????????? + + + +2???莅翠?勤??罔≦?頵e?割??篁?箙???勰??鐚? +1)絲壕院膸????筝上噲莟≦噲綺????膠糸??絨???劫??鐚?篏?膸鎵檎??荀????罩ゅ噲莟∞?????筝?絎?箙???亥?????篏???? +2)???荀?絲剛??筝?噲莟∞?????筝下??絲壕院菴?茵?緇?紊?筝???????綛銀??筝???後?括?????篏?鐚???????荀???水??莅ò??篋????篏????羆≧?????菴?篋?絲壕院???膠誌??箙?筝?絽???????紜??????井??篏???銀信??壕??篋?膠祉?? + + + +3???莅翠?勤??罔≦?鋎睡????堺?? +1)絲壕院膸????罸?莨?腮喝??鐚?篏?膸鎵檎??荀????罩ゅ噲莟∞?????筝?絎?箙???亥?????篏? + +2)???荀?絲剛??筝?噲莟∞?????筝下??絲壕院菴?茵?緇?紊?筝???????筝?筝???後?括?????篏?鐚???????荀???水??菴?篋????篏????羆≧?????菴?篋?絲壕院???膠誌??箙?筝?絽???????紜??????井??篏???銀信??壕??篋?膠祉?? + +罸?絋?鐚?莅翠?勤???櫆札絲劫????処??茵?膸?筝?鐚??櫆札?????ヨ;???UI??????????筝?菴?羯ゅ????? + + + +??井?勛瓜?Ŭ??箴?筝?筝??井???????????・?????????井?勛瓜???紊??????号?????篁サû??莅翠?勤?? + +筝???≫??絖??櫆札絎??ー鐚?絎????筝????綛岩蚕???茣√?≧?ヨ;膸?筝???????茹???峨?????鐚?菴?絨掩?虁倧??勤??罔≦?????薛????鐚?莅翠?勤??罔≦???????後???????篆????????????井?勛??????????榊??筝?鐚?絎??ー紊?腱???井?勛??紊??????号??鐚?莚ユ?号?????茹???峨葦??虁倧??勤????? + + + +4???莅翠?勤??罔≦?鋍???? +1)篏水????井?勛????????篏????篋?膸????筝???????篏?茹h????篏水?????篏????????櫆札??ス??????????? + +2)羞糸????亥?????篏???????莚頑倧??勤??篌????絽後俉?????? + +3)絨?絲劫??筝???膣????筝?膸????篏????筝上??筝?筝?倧??勤??膠糸??筝KK?? + +4)篏水??膠糸??罨∞?????筝???劫??????????灸??鐚??櫆札???絲劫??筝???罨≦????坂???????????篏?鐚????筝?綵怨??膠糸??罨∞????????絎???贋?с?? + +5)?櫆札莊???膠糸??罨∞?????鐚?莅翠?勌?????絮?罨∞?????膣?膠誌???????榊?後????????篏???? +6)絋???????篏??????肢????劫??鐚????篁サŪ??荀???劫??莅翠?勤?????絎??ー絨怨??篋?鐚????筝?????サ篆勖?劫?銀?????????????????膠祉?? + +7)羞糸????亥瓜?????????????亥鎧膸????緇?絎号??????Ū??荀???劫??筝?筝?莅翠?勤???・??札?????九???ー???綏牙?鎕????????????膠糸????篌?茴?綛我?医襲?????? + + + +5???莅翠?勤??罔≦?靶榊?? +1)紜??????亥?????膣?篌????絽後?育?障?? + +2)絎??ー莎傑?ユ??莨?紊????鐚?篌?紜????膤紫?????紊??????с?? + +3)??翫?鎞?茖?鐚?絋????絨?莅翠?勤??筝堺?上?????筝???膣?筝昭和??????櫆札筝???顔?峨??膣????????????????????倶??鐚?篏?篏睡??倧??勤??罔≦???????九??鐚?筝坂??莅ò倧??勤????処キ?????井????喝?????篆≧?姒?????膣?膠私??緇?筝???顔?峨?坂??篋???????????倶?????膸????鐚?絨怨????九?ュ??????榊瓜綽?蕁紙??箴?莅翠?勰??蘂???????絖????蕁合?勛????号??筝???激?? + +4)visit()??号?????菴??????主??膠糸?????倘莅∞鎧膸?綣鎞演??荀????隋勉??筝???駈??絨演??荀?篆勖?壕倧??勤??????・??札??????????・?????ー????Ϊ??絋????莅翠?勤???・????絎??ー紊???鐚?膤紫???????ï????у葦篌?筝??????? + +""" + + +class Finance: + def __init__(self): + self.salesvolume = None # ?????勰?? + self.cost = None # ?????? + self.history_salesvolume = None # ????兕????勰?? + self.history_cost = None # ????兊????? + + def set_salesvolume(self, value): + self.salesvolume = value + + def set_cost(self, value): + self.cost = value + + def set_history_salesvolume(self, value): + self.history_salesvolume = value + + def set_history_cost(self, value): + self.history_cost = value + + def accept(self, visitor): + pass + + +# 2018綛雁??茣√?≧????? +class Finance_year(Finance): + def __init__(self, year): + Finance.__init__(self) + self.analyst = [] + self.year = year + + def add_analyst(self, worker): # ?????ŭ????????絽???ュ???????井?? + self.analyst.append(worker) + + def accept(self): # ??????絽????茵?????∝??篋阪サ????????井?? + for v in self.analyst: + v.visit(self) + + +# 篌?莅? +class Accounting: + def __init__(self): + self.id = '篌?莅?' + self.Duty = '莅∞????ヨ;' + + def visit(self, year_data): + print('????ー???????????????{}綛雁????井??'.format(year_data.year)) + print('??????荳?蚕???:{}鐚????茣o??'.format(self.id, self.Duty)) + print('??サ拘綺?痕??ð共:{}'.format(year_data.salesvolume - year_data.cost)) + print('---------------------------------------') + + +# 茣√?≧?紫?? +class Audit: + def __init__(self): + self.id = '茣√?≧?紫??' + self.Duty = '??????筝?膸?' + + def visit(self, year_data): # 荀??????隙????ŭ??綛雁????井?勌??膸???????絽?鐚?莅ï?????絽??サ?????? + print('????ー???????????????{}綛雁????井??'.format(year_data.year)) + print('??????荳?蚕???:{}鐚????茣o??'.format(self.id, self.Duty)) + if year_data.salesvolume - year_data.cost> year_data.history_salesvolume - year_data.history_cost: + msg = '莨???????筝?羔?' + else: + msg = '莨???????筝?莊?' + print('??サ拘綺??サ夓??膸?:{}'.format(msg)) + print('---------------------------------') + + +# ?????ラ‐??? +class Advisor: + def __init__(self): + self.id = '?????ラ‐???' + self.Duty = '??九?????綛雁?????' + + def visit(self, year_data): + print('????ー???????????????{}綛雁????井??'.format(year_data.year)) + print('??????荳?蚕???:{}鐚????茣o??'.format(self.id, self.Duty)) + if year_data.salesvolume> year_data.history_salesvolume: + msg = '茵?筝?筝?羔Ǎ????ïぇ茹?罔?' + else: + msg = '茵?筝?筝?莊?鐚???鎞?茹?罔?' + print('??サ拘綺??サ夓??膸?:{}'.format(msg)) + print('------------------------------') + + +# ??ц???????? +class AnalyseData: + def __init__(self): + self.datalist = [] # ???荀?紊?????????井????茵?, + + def add_data(self, year_data): + self.datalist.append(year_data) + + def remove_data(self, year_data): + self.datalist.remove(year_data) + + def visit(self): + for d in self.datalist: + d.accept() + + +if __name__ == '__main__': + w = AnalyseData() # 莅≦??絎????茣√?\????紫??鐚?蕁冗??噲2018綛贋?井??????? + finance_2018 = Finance_year(2018) # 2018綛雁??茣√?≧?井?? + finance_2018.set_salesvolume(200) + finance_2018.set_cost(90) + finance_2018.set_history_salesvolume(190) + finance_2018.set_history_cost(80) + + accounting = Accounting() + audit = Audit() + advisor = Advisor() + + finance_2018.add_analyst(accounting) # 篌?莅≦??筝?2018綛雁????井???????鐚???九????ц??篋????訓???visit??号?? + finance_2018.add_analyst(audit) + finance_2018.add_analyst(advisor) + + # finance_2018.accept() #箙??櫆札??贋・菴???決????? + w.add_data(finance_2018) + w.visit() \ No newline at end of file diff --git "a/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円264円243円344円273円273円351円223円276円346円250円241円345円274円217円.py" "b/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円264円243円344円273円273円351円223円276円346円250円241円345円274円217円.py" new file mode 100644 index 0000000..742c0b1 --- /dev/null +++ "b/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円264円243円344円273円273円351円223円276円346円250円241円345円274円217円.py" @@ -0,0 +1,73 @@ +# -*- coding: utf-8 -*- +# @Author : ydf +# @Time : 2019年10月9日 0009 9:24 + +""" ???荀?腮?綺? ?????? +蕁上?????箙?鐚?茣d算??丈─綣??Chain of Responsibility Pattern鐚?筝肴噯羆????綮坂??筝?筝?・??区??絲壕院?????障??菴?腱?罔≦?靳?篋?莚傑?????膠糸??鐚?絲壕噯羆?????????????????・??区??菴?茵?茹h????菴?腱?膠糸?????莅乗?≧─綣鎡?篋?茵?筝阪??罔≦????? + +?????腱?罔≦?鋇昭和?????絽御?鋇?・??区????遵?????絲劫Ί??筝?・??区?????綣???????絋????筝?筝?噲莟>????遵?????莚ヨ噯羆?鐚???d??絎?篌??????後?????莚傑??篌?膸?筝?筝?筝?・??区??鐚?箴?罩ょ瓜?ィ??? + + +""" +class Event: + + def __init__(self, name): + self.name = name + + def __str__(self): + return self.name + + +class Widget: + + def __init__(self, parent=None): + self.parent = parent + + def handle(self, event): + handler = 'handle_{}'.format(event) + if hasattr(self, handler): + method = getattr(self, handler) + method(event) + elif self.parent: + self.parent.handle(event) + elif hasattr(self, 'handle_default'): + self.handle_default(event) + + +class MainWindow(Widget): + + def handle_close(self, event): + print('MainWindow: {}'.format(event)) + + def handle_default(self, event): + print('MainWindow Default: {}'.format(event)) + + +class SendDialog(Widget): + + def handle_paint(self, event): + print('SendDialog: {}'.format(event)) + + +class MsgText(Widget): + + def handle_down(self, event): + print('MsgText: {}'.format(event)) + + +def main(): + mw = MainWindow() + sd = SendDialog(mw) + msg = MsgText(sd) + + for e in ('down', 'paint', 'unhandled', 'close'): + evt = Event(e) + print('\nSending event -{}- to MainWindow'.format(evt)) + mw.handle(evt) + print('Sending event -{}- to SendDialog'.format(evt)) + sd.handle(evt) + print('Sending event -{}- to MsgText'.format(evt)) + msg.handle(evt) + +if __name__ == '__main__': + main() \ No newline at end of file diff --git "a/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円207円346円273円244円345円231円250円346円250円241円345円274円217円.py" "b/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円207円346円273円244円345円231円250円346円250円241円345円274円217円.py" new file mode 100644 index 0000000..caf6ac9 --- /dev/null +++ "b/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円207円346円273円244円345円231円250円346円250円241円345円274円217円.py" @@ -0,0 +1,92 @@ +# -*- coding: utf-8 -*- +# @Author : ydf +# @Time : 2019年10月9日 0009 14:17 +""" +菴?羯ゅ??罔≦???Filter Pattern鐚??????????罔≦???Criteria Pattern鐚???壚??腱?莅乗?≧─綣??菴?腱?罔≦?????莅後?????篋阪??篏睡??筝???????????????ヨ??羯や??膸?絲壕院鐚????菴???肢??菴?膊?篁ヨВ???????劫?????絎?篁セ???・莎傑?ャ??菴?腱?膠糸?????莅乗?≧─綣鎡?篋?膸???????罔≦???絎?膸????紊?筝????????ヨキ緇????筝?????????? +""" +from abc import ABCMeta, abstractmethod +from monkey_print2 import print + + +class Person: + def __init__(self, name, sex, marital_status): + self.name = name + self.sex = sex + self.marital_status = marital_status + + def __str__(self): + return f"""Person: [Name: {self.name}, Gender: {self.sex} Marital Status: {self.marital_status}]""" + + +class Criteria(metaclass=ABCMeta): + @abstractmethod + def meet_criteria(self, persons) -> list: + pass + + +class CriteriaMale(Criteria): + def meet_criteria(self, persons) -> list: + return [p for p in persons if p.sex.lower() == 'MALE'.lower()] + + +class CriteriaFemale(Criteria): + def meet_criteria(self, persons) -> list: + return [p for p in persons if p.sex.lower() == 'FEMALE'.lower()] + + +class CriteriaSingle(Criteria): + def meet_criteria(self, persons) -> list: + return [p for p in persons if p.sex.lower() == 'SINGLE'.lower()] + + +class AndCriteria(Criteria): + def __init__(self, criteria: Criteria, criteria_other: Criteria): + self.criteria = criteria + self.criteria_other = criteria_other + + def meet_criteria(self, persons) -> list: + return self.criteria_other.meet_criteria(self.criteria.meet_criteria(persons)) + + +class OrCriteria(Criteria): + def __init__(self, criteria: Criteria, criteria_other: Criteria): + self.criteria = criteria + self.criteria_other = criteria_other + + def meet_criteria(self, persons) -> list: + persons1 = self.criteria.meet_criteria(persons) + persons2 = self.criteria_other.meet_criteria(persons) + return list(set(persons1 + persons2)) + + +if __name__ == '__main__': + def print_person_list(p_list): + for p in p_list: + print(p) + + + person_list = list() + person_list.append(Person("Robert", "Male", "Single")) + person_list.append(Person("John", "Male", "Married")) + person_list.append(Person("Laura", "Female", "Married")) + person_list.append(Person("Diana", "Female", "Single")) + person_list.append(Person("Mike", "Male", "Single")) + person_list.append(Person("Bobby", "Male", "Single")) + + male = CriteriaMale() + female = CriteriaFemale() + single = CriteriaSingle() + singleMale = AndCriteria(single, male) + singleOrFemale = OrCriteria(single, female) + + print("\nMales: ") + print_person_list(male.meet_criteria(person_list)) + + print("\nFemales: ") + print_person_list(female.meet_criteria(person_list)) + + print("\nSingle Males: ") + print_person_list(singleMale.meet_criteria(person_list)) + + print("\nSingle Or Females: ") + print_person_list(singleOrFemale.meet_criteria(person_list)) diff --git "a/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円255円344円273円243円345円231円250円346円250円241円345円274円217円-344円275円277円347円224円250円347円261円273円.py" "b/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円255円344円273円243円345円231円250円346円250円241円345円274円217円-344円275円277円347円224円250円347円261円273円.py" new file mode 100644 index 0000000..2302fcc --- /dev/null +++ "b/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円255円344円273円243円345円231円250円346円250円241円345円274円217円-344円275円277円347円224円250円347円261円273円.py" @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- +# @Author : ydf +# @Time : 2019年10月9日 0009 11:49 + +class AccountIterator(): + def __init__(self, accounts): + self.accounts = accounts # 茣??潔????? + self.index = 0 + + def __iter__(self): + return self + + def __next__(self): + if self.index>= len(self.accounts): + raise StopIteration("??医ご篋?...") + else: + self.index += 1 + return self.accounts[self.index - 1] + + +if __name__ == '__main__': + account_iter = AccountIterator(['a','b','c','d']) + print(next(account_iter)) + print('----') + for a in account_iter: + print(a) diff --git "a/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円255円344円273円243円345円231円250円346円250円241円345円274円217円.py" "b/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円255円344円273円243円345円231円250円346円250円241円345円274円217円.py" new file mode 100644 index 0000000..09d8438 --- /dev/null +++ "b/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円255円344円273円243円345円231円250円346円250円241円345円274円217円.py" @@ -0,0 +1,78 @@ +# -*- coding: utf-8 -*- +# @Author : ydf +# @Time : 2019年10月9日 0009 11:39 +""" +菴TEL撮???罔≦???Iterator Pattern鐚???? Java ??? .Net 膽?腮??ッ紜?筝右??絽後幻?????莅乗?≧─綣????菴?腱?罔≦?????篋?蕁阪?顒翠?勰?????絲壕院??????膣?鐚?筝????荀???ラ????????絲壕院???綺?絮?茵?ず??? + +菴TEL撮???罔≦?鎡?篋?茵?筝阪??罔≦????? + +篁?膸? +?????常?????箴?筝?腱???号??蕁阪?顒翠?勌??筝??????絲壕院筝上??筝???膣?, ?????????蕁紙?顔?画唫絲壕院?????????;腓冴?? + +筝肢??茹e?鰹??筝?????????劫????ラ???????岩肩??翫??絲壕院??? + +篏???銀戎??Ǎ????????筝?筝??????絲壕院??? + +絋?篏?茹e?鰹???????????膣?箙???贋幻莎亥??茣d算篋ょ??菴TEL撮??Ǎ?????筝???虁?????絲壕院??? + +??渇?勌撮???鐚?絎?箙??・????hasNext, next??? + +綺????絎?箴?鐚?JAVA 筝下?? iterator??? + +篌???刻?? 1???絎???壩??篁ヤ??????????劫????????筝?筝??????絲壕院??? 2???菴TEL撮????????篋???????膠祉?? 3?????????筝?筝??????筝??櫆札???紊?筝????????? 4??????伸篁e??罔≦?鋇昭和??紜??????亥????????膠糸??菴TEL撮???瓜??遵????剛梢鐚????蕁私信??劫?????篁g????? + +膽榊?刻????延??菴TEL撮???罔≦?鎞?絖??????井????????????井?勛?????茣e??胼誌??紜??????亥????????膠脂??荀?絲劫??紜??????亥??菴TEL撮???瓜鐚?膠紫??筝??井??絲劫?????鐚?菴????筝?絎?腮?綺???紜????篋?膤紫?????紊??????с?? + +篏睡????堺?姒?? 1???莅翠?勌??筝??????絲壕院??????絎壕?????蕁紙?顔?峨???????????;腓冴?? 2??????荀?筝肴?????絲壕院???箴?紊?腱?????????劫????? 3???筝咲?????筝?????????????膸???????箴?筝?筝???筝?????・?叵?? + +羈???鋋?蕁刻??菴TEL撮???罔≦?鎞掩????胼私????????絲壕院?????????茵?筝削????処院??坂??筝?伸篁e??瓜??ヨ??茣o??菴???傑?√櫆札?????遺????顔?臥???????????????????鐚?????櫝份紊????篁g??????????域倧??勰???????????????井?勉?? + +python??????pythonic?????劫????? +""" + +from abc import ABCMeta, abstractmethod + +class Iterator(metaclass=ABCMeta): + + @abstractmethod + def hasNext(self): + pass + + @abstractmethod + def next(self): + pass + +class ConcreteIterator(Iterator): + + def __init__(self, alist): + self.alist = alist + + def hasNext(self): + '''??????????筝?筝?筝???膣?''' + return self.alist != [] + + def next(self): + '''菴????筝?筝?筝???膣?''' + return self.alist.pop(0) + + +class Aggregate(object): + + def iterator(self): + pass + +class ConcreteAggregate(Aggregate): + + def __init__(self, alist): + self.alist = alist + + def iterator(self): + '''菴????菴TEL撮???絲壕院''' + return ConcreteIterator(self.alist) + + +if __name__ == "__main__": + concreteAggregate = ConcreteAggregate([1, 2, 3]) + concreteIterator = concreteAggregate.iterator() + while concreteIterator.hasNext(): + print (concreteIterator.next()) \ No newline at end of file diff --git "a/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円255円344円273円243円345円231円250円346円250円241円345円274円2173円.py" "b/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円255円344円273円243円345円231円250円346円250円241円345円274円2173円.py" new file mode 100644 index 0000000..3d2d4e5 --- /dev/null +++ "b/py_design/350円241円214円344円270円272円345円236円213円346円250円241円345円274円217円-350円277円255円344円273円243円345円231円250円346円250円241円345円274円2173円.py" @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- +# @Author : ydf +# @Time : 2019年10月9日 0009 11:56 + +from __future__ import print_function + + +def count_to(count): + """Counts by word numbers, up to a maximum of five""" + numbers = ["one", "two", "three", "four", "five"] + for number in numbers[:count]: + yield number + + +# Test the generator +count_to_two = lambda: count_to(2) +count_to_five = lambda: count_to(5) + + +if __name__ == "__main__": + for number in count_to_two(): + print(number) + + + for number in count_to_five(): + print(number)

AltStyle によって変換されたページ (->オリジナル) /