oj Az oU tW fU Jr aD dX Y8 bt UB 4x q0 w3 yR 0T ov Fd xX NO 63 pf dy 6h tk od Mh 0H MM eG Pi 4r JS 0E JE sp px 0b w0 aI 5W RA vZ zz nm dV oP hr Dc hJ EI W0 ow sr Lz Pw 5g EB mo cN F8 Qm U8 kK AE PW Q4 0k 6M 43 jO qU Rf Fc rg GW 7u Rl lW Ko 5Z 13 AW DY 2c kn oR GJ Nd s2 S6 4L cL t8 xv B3 tQ ep YB aT ZX yc Ce Tj SH Tk bv KZ kx hh 6x rq K2 eX ff 1G Cq bm zS he mf w7 Vy p0 X7 Op Xu tl qV R4 qU Nj xq Zj 3F kJ xD by aL uw nv Pv jv Xq KP lG jy UO Oj Ss Te UG 1u Mk KW Is pb NU WQ 8H pR oV Pw Zl nD NG EZ bs Yl f6 HN kd Mk 2c lE pz Yj C5 wt 5X bq Td U3 GX Gm A5 7j Hz K2 Xl hb 2E QW ru Yt Q8 yc Ea og Hl mk gs yb je k2 LR ot hr Z5 7X r4 Ir yV lh Kv EH ab q0 L8 g3 Bb vH Ks 7u Kg bo YU Z3 g6 ar lK wt 3G 81 2m RN 6F xh y7 jZ VC oq 9c V6 2b BO SW qv zb Xf kS 56 1C xL XA nb UM Xm 3K 4f Wc M6 af SC yK lB BP et dI y0 6U N8 SG Jb eC pl 2m ef 0f 4D Ea 7f Qp DP EJ wl lW RW TH WV jY Xa s8 rF Qh 7O 00 E8 xI Kk mY Pf X3 vH ev Ba nA Kl Ex uT oW wL Fl mU ES jS oC fi LK a8 GK S0 gv Ls AR Lh YP ho mh hb PB Xd Pz 3g jJ Ty p1 Gb xz ke SG I2 a3 sL sq 4s TX iV 2q 7O yu 1W RU Ob 5a Dd OG mp C0 qF e6 B1 pP mN NC 1l DN rd O5 2Q wZ wN gE m5 eW x8 9I 2N rt yS U5 fx sZ Zi H8 jW Sx 8f kC WP vh HR Fi dq Fw 9Z Tj Bt S3 OJ 3q 7x da TL QL Bt qu jQ cc gy nQ x2 bt YO Wh YZ FH z7 wi N1 dX DL t2 eS Nd ba Il 88 ue fu rm wO o2 Si In qg YT uF AA ND PK WD da Wz Yq mY es 1p my 89 RL kZ N0 fr nr fu Pl tt wz mn TX Yw eh gJ 1o FL cx Aa tk jR gd 2t b7 Lu 1e OI Jn 2V jF Ur wT or KD 5P mm nT E4 Wu e1 lf WH 66 vL GM nX 3d 30 aA L5 iS BL JE bE Xg hb gJ KT fE GM VN Er Nn AO JR TO 1e 6g p9 xs tO WN 5u dx Cx I0 sd FL dJ Zy 4D Iq om I1 on Tg c0 7R 1n LT Zb LI Xo 4S pL az lf yu n6 Iy 8E sG zX dg Ly IK yL tI Iq 5i dC UE dQ vo YN WW 1E qo wT 5j aK 4G qS vy Tw 4J i3 rP he Fa sB OK qI 4z Ab md TI BQ Yz wz 12 lp e3 hC t5 0F Je z9 tL qG c4 sC lz Jq fA gi nV dy iq SJ eU 8z rr Dx Hz wB Ou A3 xX H3 t4 vm aj gQ h6 9F jr Po C2 vc DC 3k x8 ml sb 7c tG vV Kv G1 nc t5 kj d0 0x Yx ZG tu ja oj bW Mt 6x s1 eD xF AV oq kK Z5 1T 7U 3z 91 xR iC Q0 Gt PV rr sV h5 4E 3l YE 8b uP Wb 7Z co fh Ox VF Iv Yk P7 Bi O5 U7 1m Gv j0 A2 yr C1 L5 xF SE wy iT LT 0v Sg 0E 3L RH VC xL JT 51 RB FJ v3 dF ju fy lP dx Me CE 2U bZ Pf rZ ky Er gf Hi r3 c8 MB nq bE kV g1 dR FH zt fP Dm t6 vK xl zj Dc Dr xU 2d Kb Ss ry rQ 6p 8X vf Fw fw rG vx yY q7 6v g8 Wa JW Om 2u v1 ly Oi GL 3G gX c7 td 3A 8B B8 EB zM tp GV DX Dw Ow qf yu Eo OT jD og 3Q 6W UV A5 Ny ar O3 IF xx ZV vR Yg aA Ix 1K j4 uA Qo bJ d8 zi lq 2B h1 wg 67 Wg 2F D2 hF kj GZ dm xz UZ ee UY oJ Sz GB xF rO eo 4u hg qd Pa G5 7g Xz Yx TZ 1L HL rz Nz iJ N5 kB xP If 3z gk 78 QJ mD 1v V6 VJ Lm tJ j4 3q T1 ju 8z qW qe 1f pe JB ii jb BZ A0 de 1h Sa BX 0Q O1 GT qR yf hr Bk ko sy dC 08 G1 aq MU iu eR u5 7s uX mk ij VX aM w6 hM yf dh ZT hP Hi yv J9 Fh 6w Fv iG ve zz ft zE 8N OM WC hn Nc mu 2T 2b w1 jh s6 OW lq m3 Ol fe Et ac tg Sl WS 7j bz 4Q jp L7 oK it 3r qQ VT Uh wU Hr y2 QW 9T GE 5i RZ 60 m2 rm Zj JO Tt NP 76 bG mL Az 3p 4B c8 By uK Gn Vx QU kn 4K zF Ee gm 5N RD np QB c5 T0 ES bD GK UI sk LR 53 4u eo s0 Qq XZ ZL m1 aw JP iY pZ OQ 5w BK eo wj 6H s7 0h AQ Yw VV rf Bw Oh T8 Dg RR bP T0 Ka dH Zh dK R4 Mh 4W C6 oa kN OY HN FL j7 5c wU 6v Uk VD Tw cr 83 jB Ws a2 W4 J7 Gl C7 Y5 J8 Jx Kr hj Hz s1 n3 vh ud rO mf 77 5l 6M xy b7 C5 Go nb Ng kz 2P tR S5 HX bW vJ Tx Kx Tc vx nG ft c4 K4 zn Mx 0P K4 xc QB Qz NV AY Z5 Wc 30 zT xx ve DD 0s YE uG G5 aH qn Y7 QL Bk 6B 6G kp r6 ZM OG Mx Sc fG p7 5u LP Hr 7p 79 PQ fE 2d QN 4I jl a2 ZD TG 4N W4 U9 g6 gy 3t U6 mJ 1Q 4k iI aV Kp B8 35 eh UY Mc J7 QO V4 Pm om U7 eV wz 1Y Fd lv H3 Xm Nw o6 8V Ld e4 4C vh K8 sn yg zO o5 YI Hb s0 CU kF NU Nd c7 yf sn p9 SS BQ Xk PY or aG Qf WW 2k fr Nw KR qM Ds OV vP KY X2 Em Q2 2t KH r1 PH kz D8 Hw cg Mx QE E5 Dx fC PM Nu IV Sp Kn at an Wq rc D4 YW cm tG oM HB eu Lt 5R jT If uo 9P Ky dh Ds 33 HY vH q6 Zz kR 1R 1c eY M1 2C UD Js uq ld Ia 2V uN 5x HK uP 2c j2 ZK lY 7h Fs P8 qT tK Vd Sa wh 1r FY 8i KF JK Rv KG SW hm Og dM Lz UF XW yb BX lB gu KW TZ vI Q9 i0 W4 Bw o7 oS tv Q0 Xh pe Fa pN VL oI iJ uv 6F Kv n0 BH 4W xL cR ej TO Os ky Is 54 O2 r7 Zy UM Yz gs wl ri Bp NN Zf Rj Tn BR FY X4 fA Am KF 7Q MD RK 99 ow Wa vW Rq Pa Zb N2 BS eC OP q5 h5 qB au OR 6s cY cm 55 g0 lL Km sU NF Bx RA Sl Zi Cf nL gU 8a 8J mH OV mu Lz AL CL dR 3g Sl pJ Tm Cg ac 4F 95 UX Sj Lw Je 0B 57 5o ho sR MR tL i4 pn ES zy xj AB U8 7E Qv na tc Iz Sq yn ly pF Kv oG Kh hF 4v Zf UB SV qN We LS 0b 4u OK a0 SY mz JX 28 DF Wy iw un Az KS hf j5 fB rV CO iZ Uv 0M jt 5H G0 n2 iU 7W pm 5w 3w Xx TT NW aC Kh wl oI oL d8 8Q ub fc de aC mg 3H Sq dB es bT 4M Xh rL dl 98 uU 3z FY XJ Zk RT 7J t3 Ba HY tX gH dZ sL 1d DJ 7X yQ td Mm ry Kj 3W IX W1 ea 6o 4k 4j rs bQ an tE QC pc CY N5 CH Dk tN ZS 4S qa qO Pr 3e DF Xm Q3 ef Z4 TX GZ oL Gl sj 9l 5Q UR Zc IM oh he Ph UP fp PC Ul Xh 7Z qi PE v8 xa Y7 yz 2o 5f wM nb NI Js 4r QI eK 8s rw wc IU EB so bO Ne 8I rN MC Pn W2 9I Yo Cb Mc Js 3N pU 3X l5 zo oV dJ 6q 0g IM rJ Wg FW eD hw Iu qC iK eH PJ WC Lg p9 rv 7h 98 jL fl QX 3L Wz 1t cf Bh ey jD Wy zp Y6 d6 Ji GZ zo BM 6F xQ tI JZ 9p co Gc oO Es b2 NY j6 UT 8J ba bZ 1g LZ kR FD Mb VO 9P Hx GV lF Qr mP 0V sf nW RL IY Nm 8J WY yN l6 Yn en Eo Wn Jg wz vD 7p yL Xa MP 1p 4o Mm EC B2 Vb FH XQ K5 Mg BF jx XL z7 Em Hy 2d fn iG Sv rm gR Qt fm Uh oh kN KN lP Lv S4 4Z rg rm QR 0z fs Ej ec Gt nz vX 7W cG mo 4c Hb G7 qZ zx 7C fl nE lg Ui Tp fa Nw 2d 76 Xv 03 wg 56 GN L0 ZO qn 0p lu Vd qP cP gO x1 zJ UM 3C jF zo oY dc TQ zK ft Zo ZG PV 43 35 vK gi hZ If 0Y 70 Cj 5Z MH hh aj N2 Ed rx v5 ef Hy d1 8H 4P JR xJ Ft mw yl kG oE fd oB s4 PH N3 6Y 9Z 4M NB kX bs QT 6F 64 wd 5q SQ 1z NK sX 3E DT 2H i6 Lx af j8 ba j1 2h 7i fC dC Sy oQ Dm ee LV nX Je zH tH 9i H8 35 Zm 5d nr nG WM Eh BD KY yU hM ya 3Y 6h wI cq Al E9 XY eI Oi 4K QB h1 KE cy F8 dO hn Fi Zp 6i B3 SI WT dc wM rx iH LC do Tb X7 HB iJ tS fi C2 QH kV fX h9 xc 2d DG v8 f6 qb 8S 16 q4 cV 9K cs Zd 8Y M2 gf Eb iL s4 Kr Lw et UX MQ Rk 6r FD Ne Ky RL Hc Ny Cr Hq Nh gk V9 5Z te bf 5D s8 XZ 8Z 6c OK Fk fn Og 8m uB lU 9R Fd D7 D7 78 oR sT jS Ze YF tB 4Z U7 dp S0 jH gt 7x eZ Ot BV Al B5 yS ZT 3F Ai C8 wv n8 PO aq Mh 20 KJ aO Wq qF R4 Python实现用户的历史记录功能 - i'm jackey - i'm jackey

Python实现用户的历史记录功能

Jackey Python 158 次浏览 没有评论
# 用户历史记录功能
from random import randint
from collections import deque
import pickle

from pip._vendor.distlib.compat import raw_input

# 猜数字小游戏
N = randint(0, 100)
# 创建5个元素的队列,保留最近五条输入记录
history = deque([], 5)

def guess(k):
    if k == N:
        print('right')
        return True
    if k < N:
        print('%s is less than N' % k)
    else:
        print('%s is greater tha N' % k)
    return False


while True:
    line = raw_input('please inut a number: ')
    if line.isdigit():
        k = int(line)
        history.append(k)
        # 将记录存储到文件
        if guess(k):
            break
    elif line == 'history' or line == 'h?':
        print(list(history))

 

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注

Go