1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
SÞjc@sØddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZddlZddlZddlZddlZddlZddlZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd    „Zd
„Zeed „Z d „Z!d „Z"d„Z#dd„Z$d„Z%d„Z&dd„Z'dd„Z)d„Z*d„Z+d„Z,dS(iÿÿÿÿNcCs tƒdS(N(tDelOutofTimeViewCacheData(((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerViewCache.pytOnDay*scCs\|jƒ}t|ƒ}|s"dSt|tƒt|ƒsXtjƒj|jƒƒdSdS(N(t GetPlayerIDt FindViewCachetUpdPlayerViewCachetTruetIsSaveDBViewCachet    DBDataMgrtGetPlayerViewCacheMgrtDelPlayerViewCache(t    curPlayertplayerIDtcurCache((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerViewCache.pytOnPlayerLogout.s    cCsR|jƒ}tjƒ}|j|ƒ}|s1dSt|ƒsN|j|ƒdSdS(N(RRRtGetPlayerViewCacheRR    (t crossPlayerR t viewCacheMgrR ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerViewCache.pytOnCrossPlayerLogout<s    cCs°tjƒ}tjƒ}x‘t|jƒƒddd…D]p}|j|ƒ}|jƒ}|tj    krnq8n|j
|ƒ}|r‰q8nt |ƒr›q8n|j |ƒq8WdS(Niÿÿÿÿ( t CrossPlayertGetCrossPlayerMgrRRtrangetGetCounttAtRt ShareDefinetRealPlayerIDStarttFindCrossPlayerRR    (tcrossPlayerMgrRtindext    viewCacheR R((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerViewCache.pyRIs  &  cCso|s
tS|jƒ}|tjkr)tStjƒ}tj|ƒrHtSt    j
ƒ}|rctj ntj }xt|D]l}|tj krŽqsn|j|ƒ}x?|D]7\}}}    |j|||    ƒ}
|
j|ƒr¤tSq¤WqsW|jƒ} | tjddƒkrktjddƒ} | s(d} n| dd} ttjƒƒ}||jƒ}|| krktSntS(NtPlayerViewCacheiiiii(tFalseRRRt    GameWorldt IsCrossServert PlayerFamilytIsFamilyNeedViewPlayerRRtGetBillboardMgrtCrossBillboardTypeListtBillboardTypeListtFamilyBillboardListtGetBillboardGroupListt GetBillboardtFindByIDtGetLVt IpyGameDataPYt
GetFuncCfgtintttimet
GetOffTime(RR t isCrossServert billboardMgrtbillboardTypeListtbTypet    groupListt billboardTypet groupValue1t groupValue2t billboardObjtplayerLVtmaxDaystMaxTimetcurTimetpassTime((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerViewCache.pyR\s:           cCs6t|ƒ}|sdS|jƒ}d|kr2dS|S(NtLineup(Rt GetPlusDict(R R tplusDict((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerViewCache.pytFindBattleViewCache‰s   c    Csätjƒ}|j|ƒ}|r?t|ƒ}|rà|}qàn¡|tjkr²tjƒr²tjƒj    |ƒ}|r‘|j
|ƒ}t |ƒqàtj |ƒràt |ƒ}qàn.tjd|ƒrå|j
|ƒ}t||ƒ}nûtj|kotjknràtjƒ}|jtjd|jƒdƒƒ}|j
|ƒ}t||jƒƒ}|dd}d||f}|jdtjdƒ|fƒ|j|ƒ|j|ƒ|jttjƒƒtjdd ƒƒn|S( s²éÕÒÍæ¼Ò»º´æ£¬Èç¹û²»´æÔÚ£¬Ôò»áÓжîÍâÂß¼­£¬Èç´Óredis¡¢dbÖ±½ÓÕÒ£¬
            ±¾·þÍæ¼ÒÀíÂÛÉÏÒ»¶¨Óв鿴»º´æ£¬ÒòΪÈç¹û²»´æÔÚ»áÖ±½Ó´Ódb¶Á£¬³ý·Ç¸ÃÍæ¼ÒÊý¾Ý±»É¾³ý
            ¿ç·þÍæ¼ÒÀíÂÛÉÏÒ²Ò»¶¨Óлº´æ£¬Ö»ÊÇͨ¹ý¿ç·þ»ò´Ó×Ó·þ²éѯ£¬ÑÓ³Ù»ñµÃ
            ¡¾×¢¡¿Íâ²ãµ÷ÓÃÒÀȻҪÅжÏÊÇ·ñÓÐÊý¾Ý
    tRobotiiidsfake%s@test@s%ss%s%ssÖ÷¹«iii
i€Qi/ ( RRRt__CheckUpdViewCacheRRRt IsMainServertGetPlayerManagertFindPlayerByIDtAddPlayerViewCacheRtGetDBPlayerAccIDByIDtUpdPlayerViewCacheByDBR+tGetIpyGameDataNotLogtUpdRobotViewCachetFackPlayerIDStarttFackPlayerIDMaxtIPY_DatatGetRobotByIndextrandomtrandintt GetRobotCounttGetIDt SetPlayerNamet    GbkToCodetSetAccIDt SetServerIDt
SetOffTimeR-R.(    R RR tupdCacheR
t
ipyDataMgrt robotIpyDatatserverIDtaccID((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerViewCache.pyR”s:    " %   ,cCsmxftjD][}|tj||ƒkr
|jtjdƒtjd||ƒt    j
|t j ƒPq
q
WdS(NisI¹¦ÄÜÕ½¶·»º´æÓõ½¸ÃÁ÷ÅÉÔ¤Éè£¬ÖØÖûº´æË¢ÐÂ! batPresetType=%s,batPresetID=%s( RtNeedCacheBatPresetListt PlayerPresettGetBatPresetIDtSetDicttChConfigtDef_PlayerKey_ViewCacheRefreshRt
DebugLogExtChPlayertOnPlayerBaseInfoChangetIPY_PlayerDefinetCDBPlayerRefresh_FightPower(R
t batPresetIDt batPresetType((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerViewCache.pytResetCacheUpdByPresetSwitchÕscCsB|tjkrdStjƒj|ƒ}|s2dSt|dtƒS(NtcheckRefreshPlus(RRRRERFRR(R R
((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerViewCache.pyRCÞs cCsù|s
dS|jƒ}tjƒj|ƒ}|s5dS|jƒ}|j|jƒƒ|j|jƒƒ|j    |j
ƒƒ|j |j ƒƒ|j |jƒƒ|j|jƒƒ|j|jƒƒ|j|jƒƒ|j|jƒƒ|jtj|ƒƒ|j|ƒ|jtj|ƒƒ|jtj|ƒƒ|j |rYt!t"j"ƒƒndƒ|r’|j#t$j%ƒs|dS|j&t$j%dƒn|j't$j(ƒ|j't$j)ƒt$j*}i}|j+ƒj,t-j.ƒ}xt$j/D]„}    |    d}
|
dksã|
|j0ƒkrqãn|j1|
ƒ} | sã| j2ƒr?qãni| j3ƒd6| j4ƒd6|d|
<qãWt5j6|ƒ} i} ii}}xt7j8D]}t9j:||ƒ}t9j;||t7j<ƒ}i|t=t7j>ƒ6|t=t7j<ƒ6| d|<t?j@||ƒ}|rE|jAd|ƒ}t=|ƒ|krE||d|<qEn| jBt$jC|ƒ}| jDt$jC|ƒ}id„|jEƒDƒd    6|d
6|d|<q—Wi|j't$jFƒd 6|d 6}| jBt$jGƒ}tHjI|ƒ}i|d 6d„|jEƒDƒd    6}| jBt$jJƒ}tKjL|ƒ}i|d 6d„|jEƒDƒd    6}| jBt$jMƒ}|j't$jNƒ}|j't$jOƒ}i|d6|d6d„|jEƒDƒd    6}i|d6| d6|d6|d6|d6|d6|d6|d6}|jP|ƒ|S(s¸üÐÂÍæ¼Ò²é¿´»º´æÊý¾Ý£¬¸üÐÂʱ»úÓÉÍâ²ã×Ô¼ºÅжϣ¬ÕâÀïÖ»×ö¸üÐÂÂß¼­
    1. ÏÂÏßÊ±Ç¿ÖÆ¸üÐÂÒ»´Î£¬ÉÏÏßÔݲ»¸üУ¬ÉÏÏßʱÓɸ÷¹¦ÄÜÈç¹ûÓÐÐèÒªÓõ½´¥·¢¸üÐÂ
    2. ÓÐÐèÒªÓõ½»º´æÊý¾Ýʱ£¬Èç¹ûÍæ¼ÒÔÚÏߣ¬x·ÖÖÓÄÚ¶à´Î»ñȡʱ×î¶à¸üÐÂÒ»´Î£¬Ã»ÓлñÈ¡»º´æÊý¾ÝÔò²»¸üÐÂ
    3. ÓÐÉèÖÃÐèҪˢÐÂʱÔòÎÞÊÓË¢ÐÂCD
    NiitItemIDtUserDatas%st BatPresetIDcSs%i|]\}}|t|ƒ“qS((tstr(t.0tktv((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerViewCache.pys
<dictcomp>9s    tAttrtSkilltGWLVtPresettCntcSs%i|]\}}|t|ƒ“qS((Rp(RqRrRs((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerViewCache.pys
<dictcomp>As    cSs%i|]\}}|t|ƒ“qS((Rp(RqRrRs((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerViewCache.pys
<dictcomp>Fs    tLVtClassLVcSs%i|]\}}|t|ƒ“qS((Rp(RqRrRs((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerViewCache.pys
<dictcomp>Ls    tEquipt    BatPresetR>tMinggetBeautytHorsetGubaot FightPowerH(QRRRRt GetFamilyIDRVtGetAccIDRTt GetPlayerNametSetLVR*tSetJobtGetJobt
SetRealmLVtGetOfficialRanktSetFacetGetFacet
SetFacePict
GetFacePict SetModelMarkt GetModelMarktSetEquipShowSwitchtGetEquipShowSwitcht
SetTitleIDt PlayerControlt
GetTitleIDt SetFamilyIDtSetFightPowerTotalt GetFightPowerRWRtGetPlayerServerIDRXR-R.t GetDictByKeyRbRcRatNomalDictGetPropertytDef_PDict_FightPowerHtDef_PDict_FightPowerHExtDef_PerPointValuetGetItemManagertGetPackt IPY_GameWorldtrptEquiptDef_MainEquipPlacesRtGetAttIsEmptyt GetItemTypeIDt GetUserDatat PlayerOnlinetGetOnlinePlayerRR^R_R`tGetFuncPresetIDtFuncPreset_MinggeRptFuncPreset_Battlet
TurnAttacktGetPlayerLineupInfotgett GetCalcAttrtDef_CalcAttr_MinggetGetCalcSpecInfotitemstDef_PDict_MGGanwuLVtDef_CalcAttr_Gubaot PlayerGubaotGetGubaoTotalCnttDef_CalcAttr_Beautyt PlayerBeautytGetBeautyActCnttDef_CalcAttr_HorsetDef_PDict_HorseLVtDef_PDict_HorseClassLVt SetPlusDict(R
t    isOfflineRlR R tfamilyIDRt    equipDictt    equipPackt
equipPlacet
equipIndextcurEquiptolPlayert batPresetDictt
lineupDictt mgPresetDictRjRit
mgPresetIDt
lineupInfotattrDictt skillLVDictt
minggeDicttactCntt    gubaoDictt
beautyDictthorseLVtclassLVt    horseDictR@((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerViewCache.pyRæsˆ   %
, 0 $$+ cCs¡d}tjƒj|ƒ}|s5tjd|ƒ|Stjƒ}|j|ƒ}|sh|j    |ƒ}n|j
}tj d|ƒ|j |j ƒ|j|jƒ|j|jƒ|j|jƒ|j|jƒ|j|jƒ|j|jƒ|j|jƒ|j|jƒ|j|jƒ|j |ƒ|j!|j"ƒ|j#|j$t%j&|j'ƒ|j(tj)|j ƒƒ|j*|j+r–tj,|j+ƒndƒ|S(sG¸üÐÂÍæ¼Ò²é¿´»º´æÊý¾Ý£¬Ö±½Ó´ÓdbÊý¾Ý¸üУ¬½ö¸üÐÂdbPlayer±íÓеÄÊôÐÔ£¬
    s!UpdPlayerViewCacheByDBÕÒ²»µ½Íæ¼Ò!sdb²éÕÒÖ±½Ó¸üÐÂÍæ¼Ò²é¿´»º´æÊý¾Ý!iN(-tNonet PyMongoMaint GetUserCtrlDBt findDBPlayerRtErrLogRRRRGtFamilyIDtDebugLogRVtAccIDRTt
PlayerNameR…RyR†tJobRˆt OfficialRankRŠtFaceRŒtFacePicRŽt    ModelMarkRtEquipShowSwitchR’tExAttr3R•tSetFamilyServerIDtLastWeekFamilyActiveValueR–t FightPowerExRbRt
FightPowerRWtGetAccIDServerIDRXt
LogoffTimetChangeTimeStrToNum(R R tdbPlayerRR¿((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerViewCache.pyRITs6      (cCsdtjƒj|ƒ}|sdS|j|ƒ|j|ƒ|j|ƒ|j|ƒ|j|ƒdS(N(RRRR•Rät SetFamilyNametSetFamilyEmblemIDtSetFamilyEmblemWord(R R¿t
familyNametemblemIDt
emblemWordtfamilyServerIDR ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerViewCache.pytUpdPlayerViewFamilyInfows     cCs,|s
dS|jƒ}|jd|jƒƒS(NiR(R?R®tGetFightPowerTotal(RR@((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerViewCache.pytGetViewCacheFightPowerHƒs ic Cs·t|ƒ}|siSi}| s2|tjkrE|jƒ|d<n| s[|tjkrn|jƒ|d<n| s„|tjkr—|jƒ|d<n| s­|tjkrÀ|j    ƒ|d<n| sÖ|tj
kré|j ƒ|d<n| sÿ|tj kr|j ƒ|d<n| s(|tjkr;|jƒ|d<n| sQ|tjkrd|jƒ|d<n| sz|tjkr|jƒ|d    <|jƒ|d
<n| s³|tjkrv|jƒ|d <|jƒ}|jd |jƒƒ}|jd iƒ}|rv|jdiƒ}i}x7|jƒD])\}    }
i|
jd dƒd 6||    <q$Wi|d 6|d6|d 6|d<qvn|s³|ji|jƒd6|jƒd6|jƒd6ƒn|S(NtNameRytRealmLVRßRàtTitleIDRáRâRÙtFamilyServerIDRçRR|R>itPlusRÝtServerIDRÛ(RRgtCDBPlayerRefresh_PlayerNameR„tCDBPlayerRefresh_LVR*tCDBPlayerRefresh_OfficialRankt
GetRealmLVtCDBPlayerRefresh_FaceR‹tCDBPlayerRefresh_HairColorRtCDBPlayerRefresh_ExAttr3R”tCDBPlayerRefresh_ModelMarkRt CDBPlayerRefresh_EquipShowSwitchR‘tCDBPlayerRefresh_FamilyR‚tGetFamilyServerIDRhRôR?R®R²tupdateR‡t GetServerIDRƒ( R t refreshTypeRtbaseInfoR@RR|RÇR>RrRs((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerViewCache.pytGetPlayerBaseViewInfoŠsJ  !%7cCstjƒ}|j|ƒ}|s3|j|ƒ}nd|kra|j|jd|jƒƒƒnd|kr|j|jd|jƒƒƒnd|kr½|j    |jd|j
ƒƒƒnd|krë|j |jd|j ƒƒƒnd|kr|j |jd|jƒƒƒnd|krG|j|jd|jƒƒƒnd|kru|j|jd|jƒƒƒnd|kr£|j|jd|jƒƒƒnd    |krÑ|j|jd    |jƒƒƒnd
|krÿ|j|jd
|jƒƒƒnd |kr-|j|jd |jƒƒƒnd |kr[|j|jd |jƒƒƒnd |kr‰|j|jd |jƒƒƒnd|kr·|j|jd|j ƒƒƒnd|krß|j!|jdiƒƒn|j"|rýt#t$j$ƒƒndƒ|S(NRöRyRÛRÝR÷RßRàRøRáRâRÙRùRûRçRúi(%RRRRGRTR®R„R…R*RVRƒR†R‡RˆRÿRŠR‹RŒRR’R”RŽRRR‘R•R‚RäRRWRR–RôR½RXR-R.(R R
R¾RR ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerViewCache.pytUpdPlayerBaseViewInfoµsH  " " " " " " " " " " " " " " %cCs£|s
dSi |jƒd6|jƒd6|jƒd6|jƒd6|jƒd6|jƒd6|jƒd6|jƒd6|jƒd    6|j    ƒd
6|j
ƒd 6}|S( NRÜRyRÝR÷RßRàRøRáRâRçtPlusData( R„R*R‡RÿR‹RR”RR‘RôR?(R t    robotDict((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerViewCache.pytGetRobotByViewCacheÜs          cCs.tjd|ƒ}|s*g}tjƒ}tjƒ}x©t|jƒƒD]•}|j|ƒ}|jƒ|krwqJn|j    ƒ}|j
|ƒ}|sª|j |ƒ}n|s¶qJnt |||ƒ|j |jƒ|gƒqJW|jdtƒtjd||ƒtjd|t|ƒ|fƒn|S(NsrobotFPSortList%streverses%¼ÓÔØ»úÆ÷ÈËÕ½Á¦ÅÅÐò: tempNum=%s,%s, %s(R+t GetConfigExRRRNRRRROt
GetTempNumRSRRGRKtappendRôtsortRt SetConfigExRtLogtlen(ttempNumtrobotFPSortListRRZRtipyDatat robotPlayerIDR ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerViewCache.pytGetRobotFightPowerSortListïs*   #cCs‘|stjd|ƒ}n|s%dSyt|jƒƒ}WndSX|jƒ}|jtj|jƒƒƒ|j    |j
ddƒƒ|j |j
ddƒƒ|j |r²|n|j
ddƒƒ|j |j
ddƒƒ|j|j
ddƒƒ|j|j
d    dƒƒ|j|j
d
dƒƒ|j|j
d dƒƒ|j|j
d dƒƒ|jtjƒjƒƒ|j|j
d iƒƒ|S(NRBRyiRÝR÷iRßRàRøRáRâRçR (R+tGetIpyGameDatatevalt GetViewCacheRÿRTRRUt GetRobotNameR…R®R†RˆRŠRŒR’RŽRR–RWt GetGameWorldRR½(R trobotIDR[t    robotInfotrealmLV((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerViewCache.pyRK    s, %cCs¨tjƒj|ƒ}|jƒ}|j}|j}| sa|tjƒjƒksa|tj    kr{t
j |t |ƒƒdSt jtji|d6|gtj|ƒdS(Nt tagPlayerID(RREtGetPlayerByIndexRtPlayerIDRûR!RRRt NetPackCommont SendFakePacktGetPack_ViewCachetCrossMsgt SendToServertS2S_ViewTagPlayert dirType_All(Rt
clientPackttickR
R R%t tagServerID((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerViewCache.pytOnCMViewPlayerInfo2s         .)cCs'|d}tj|t|ƒ|ƒdS(NR%(RtSendFakePackByIDR*(tdataMsgt fromServerIDR R%((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerViewCache.pyR-Bs
cCs™t|ƒ}|s'tjd|ƒdStjƒ}|jƒ|_|jƒ|_|j    ƒ|_
|j ƒ|_ |j ƒ|_|jƒ|_|jƒ|_|jƒ|_|jƒ|_|jƒ|_|jƒ|_|jƒ|_|jƒ|_|jƒ}t j!ƒj"ƒ}|dkr5tj#ƒjƒ}n||_$|j%ƒ|_&|j'ƒ|_(|j)ƒ|_*||_+|j,ƒ|_-t.|j-ƒ|_/|S(Ns²é¿´Íæ¼ÒÕÒ²»µ½Ä¿±ê! playerID=%si(0RRRØtChPyNetSendPackttagSCQueryPlayerCacheResultRR'R„RÜR*RyR‡RÝRÿR÷R‹RßRRàRRáR‘RâR”RøRRûR—RçtGetFightPowerExRæR‚Rt GetFamilyMgrtGetCurCrossServerIDR!RÙt GetFamilyNamet
FamilyNametGetFamilyEmblemIDtFamilyEmblemIDtGetFamilyEmblemWordtFamilyEmblemWordtFamilyDataServerIDt GetPlusDataR Rt PlusDataSize(R R R/R¿tfamilyDataServerID((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerViewCache.pyR*Gs<            (-RbRRÕRR!R“R(R6RgR+R R§R_R¸RµRR¬RR+ReRPR.RR RRRRARRkRCRRRIRóRõR R RRRÔRKR2R-R*(((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerViewCache.pyt<module>sT                                           -         A            n    #          +    '      )