⽤python画⼤⽩的代码_Pycharm的简单使⽤及快捷键介绍Pycharm的简单使⽤
个性化设置
file --》 settings --》 editor --》general --》 change font size
file --》 settings --》 editor --》font --》 修改默认字体⼤⼩
file --》 settings --》 editor --》color Scheme --》 python --》monokai (主题的配置)
file --》 settings --》 editor --》 general --》 code completion --》case sensitive completion --》 None
组合键的使⽤
ctrl+v 粘贴
ctrl+c 复制
ctrl + a 全选
ctrl + x 剪切(默认剪切整⾏)int float是什么意思
ctrl + y 删除整⾏
ctrl + del 删除⼀个单词
shift + enter 换⾏
ctrl + f 搜索—》math case 匹配⼤⼩写;words 匹配单词(空格区分单词)
ctrl + d 向下复制
ctrl + shift + r 全局搜索
shift + f10 运⾏上⼀次运⾏的⽂件
ctrl + shift +f10 运⾏当前⽂件
home ⾏⾸
ctrl + home ⽂件⾸部
end ⾏尾
ctrl + end ⽂件尾部
变量
什么是变量
变化的量(状态--》描述某件事物的属性)
定义变量
python代码画图案变量名 赋值符号(=)变量值
描述(接收变量值) 赋值符号 具体的值
变量的规则
变量名必须具有意义spyder打不开的解决办法
变量名的两种⽅式
下划线:age_of_zq = 18
驼峰体:ageofzq = 18
注释
#三单引号注释
'''
此段已被注释
'''
#快捷键注释
组合键:ctrl + /
#dwad
#dWD
ajax原理详细讲解#dwada
Python库———turtle的简单使⽤利⽤turtle画出⼤⽩
相关python代码
import turtle as t
t.setup(650,350,200,200)
t.pensize(5)
t.seth(100)
t.fd(100)
#头部
t.pd()
t.circle(60,75)
t.fd(20)
t.circle(60,85)
t.fd(20)
t.seth(-86)
t.circle(50,90)
t.seth(0)
t.fd(45)
t.circle(45,100)
t.fd(20)
#眼睛
t.pu()
t.seth(180)
t.fd(90)
#左眼睛
t.pd()
t.begin_fill()
t.circle(7,180)
t.fd(15)
t.circle(7,180)
t.fd(15)
t.bk(13)
t.pensize(4)
t.fd(15)
t.pd()
t.begin_fill()
t.fd(13)
t.circle(7,180)
t.fd(15)
t.circle(7,180)
t.fd(5)
#⾝体
t.pu()
t.bk(50)
t.seth(180)
t.fd(90)
t.pd()
#左半边
t.seth(-140)
t.fd(30)
t.circle(90,20)
t.fd(30)
iis7反向代理t.circle(80,30)
t.fd(30)
t.circle(10,180)
t.seth(70)
t.fd(10)
t.pu()
t.seth(80)
t.fd(80)
t.seth(-120)
t.circle(180,60) #右半边
t.pu()
t.seth(60)
t.fd(265)
t.seth(-40)
t.pd()
t.fd(30)
t.circle(-90,20) t.fd(30)
t.circle(-80,30) t.fd(30)
t.circle(-10,180) t.seth(120)
t.fd(10)
t.pu()
t.seth(100)
t.fd(80)
t.seth(180)
t.fd(10)
t.pd()
t.seth(-60)
t.circle(-180,60) t.done()
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论