python's People
python's Issues
绘制五角红星
#DrawStar.py
from turtle import*
color ('red','red')
begin_fill()
for i in range (5):
fd (200)
rt(144)
end_fill()
done ()
《Python学习手札》
Python数据分析与展示之Pandas库 学习笔记手札及代码实战
CaesarChineseEncode4.py
#CaesarChineseEncode.py
ptxt=input("请输入明文文本:")
for p in ptxt:
if"a"<=p<="z":
print(chr(ord("a")+(ord(p)-ord("a")-3)%26),end='')
elif"A"<=p<="Z":
print(chr(ord("A")+(ord(p)-ord("A")-3)%26),end='')
elif 0x4E00<=ord(p)<= 0x9FA5: #中文字符加密处理
print(chr(ord(p)+3),end='')
else:
print(p,end='')
菲波那切数列的计算
#CalFibonacci.py
a,b=0,1
while a<1000: #输出不大于1000的序列
print(a,end=',')
a,b=b,a+b
《Python学习手札2》
判断输入整数是否在[0,100]之间
#判断输入整数是否在[0,100]之间
num = eval (input ("请输入一个整数:"))
if num > 100 or num <0: #判断[0,100]
print ("输入整数小于0或大于100")
else:
print ("输入整数在0到100之间(含)")
Hello word
print ("Hello World")
圆面积的计算
#CalCircleArea.py
r=25 #圆的半径是25
area=3.1415*r*r
print(area)
print("{:.2f}".format(area)) #只输出两位小数
绘制七彩圆
import turtle
#DrawSevenColorfulCircles.py
import turtle
colors=['red','orange','golden','green','']
NumPy数据存取与函数
Python数据分析与展示之Matplotlib基础绘图函数示例和引力波的绘制学习笔记手札及代码实战
Python网络爬虫之网络爬虫的“盗亦有道”和Requests库网络爬取实战学习笔记手札及代码实战
Python数据分析与展示之图像的手绘效果实例分析学习笔记手札及代码实战
Python数据分析与展示之NumPy库学习笔记手札及代码实战01
程序运行计时
#CalRunTime.py
import time
limit =10*1000*1000
start=time.perf_counter()
while True:
limit-=1
if limit <=0:
break
delta=time.perf_counter() - star
print ("程序运行时间是:{}秒".format(delta))
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.