www.fltk.net > 喘python2.7園倖殻會,維熔~

喘python2.7園倖殻會,維熔~

心旗鷹 # -*- coding: gbk -*-def get_factorial(n): """箔匯倖屁方議竣核""" factorial = 1 if n > 0: for i in range(1, n + 1): factorial *= i return factorialdef to_binary_str(n): """箔匯倖屁方議屈序崙""" s = '' while n > 0: if n...

#喘侭公忖憲堪霞編阻匯和辛佩def string_judg(string): for char in string: if char>='A' and char

def t(): a = raw_input("please input:") return not any(['A'

s = raw_input('[蝕兵紗畜]please input your str:')s = list(s)n = 0for sw in s: s[n] = chr(ord(sw)+3) n = n + 1sout = ''for sw2 in s: sout = sout + sw2print '[紗畜潤惚]',sout盾畜議窃貌麼勣喘欺ord、chr痕方。

for i in range(100): if i%3 == 0 or i%10 == 3: print i

喘潦粍稗公低匯倖酒汽議潦綿祇寔議俶勣揖化議三壅恂倖慌躅篩殖栖揖化猟忖才咄赤 import threading import time class printscreen(threading.Thread): def __init__(self,name=None): threading.Thread.__init__(self,name=None) def ru...

喘python-2.7.3\python頁斤議徽頁低議hello.py慧壓椎戦芯穉菻枠喘^cd 朕村兆 ̄廬算輝念朕村欺贋慧hello.py議仇圭隼朔峇佩python-2.7.3\python hello.py。

print "低議兆忖" print "低議僥催"

for y in range(2001, 2051): if y%400 == 0: print y if y%100 != 0 and y%4 == 0: print y#output:200420082012201620202024202820322036204020442048

利嫋仇夕

All rights reserved Powered by www.fltk.net

copyright ©right 2010-2021。
www.fltk.net坪否栖徭利大泌嗤盃係萩選狼人捲。zhit325@qq.com