首页
关于
推荐
百度一下
腾讯视频
Search
1
你要的草莓熊来啦!——郑科院
4,470 阅读
2
第4章 实训2 删除年龄异常数据
4,147 阅读
3
郑州科技学院2023-2024学年第一学期期末统一考试 Python程序设计
3,403 阅读
4
郑州科技学院2022-2023年第二学期期末统一考试 管理学 课程试题
3,159 阅读
5
Python程序设计教学大纲(董付国老师版)
1,442 阅读
默认分类
登录
/
注册
Search
庞立智
累计撰写
77
篇文章
累计收到
384
条评论
首页
栏目
默认分类
页面
关于
推荐
百度一下
腾讯视频
搜索到
77
篇与
的结果
2025-04-13
上善若水
本文是关于修身养性,人要慢下来,稳一点,不要浮躁,不要怨天忧人。学好技术,更不要忽略了为人处事。浮躁的时候可以看看,不能只学技术,忘记了内心的修养。关于认知认知层次越低的人,其本能属性往往越突出。他们缺乏对善意的感知能力,更难以建立健康的人际边界。你给予的忍让与尊重,在其认知体系中可能被解读为软弱——过度的包容只会招致步步侵蚀,甚至激发更强烈的索取欲,一次不退让就会的得罪到人。这类人并非不懂感恩,而是其思维逻辑始终围绕自我中心运转:永远站在自身立场合理化所有行为,将他人的付出视为理所当然,甚至将善良视为可利用的弱点。当你的包容缺乏底线,在他们眼中便等同于“可随意拿捏的弱者”,正如人们不会真正尊重毫无原则的温顺,即便你温柔如兔子,失去价值的瞬间也会被嫌弃“急了会咬人”——这是现实中残酷却真实的生存法则。关于思维模式人类的思维模式大体可分为两种维度:其一为普世价值型思维秉持着相信正义、公平与善良的永恒价值。他们以真诚为基石,视尊重为人际交往的根本法则,认为关系的本质是相互成就——朋友应是并肩而行的伙伴,珍视承诺、信守道义,共同构建温暖而有尊严的精神世界。在他们眼中,人性的光辉在于对弱者的扶持,对规则的敬畏,以及对美好事物的不懈追求。其二为丛林法则型思维信奉者将生存视为一场零和博弈,认为“弱肉强食”是世界的终极真理。他们习惯以力量衡量一切,即便面对朋友也可能暗藏竞争心态,为达目的不惜牺牲情感纽带。在这类思维中,道德规范退居其次,利益得失成为行动的最高准则——“适者生存”不是奋斗的动力,而是不择手段的借口。他们推崇“强者通吃”,对弱者缺乏基本的共情,甚至将他人的善意视为可利用的漏洞。当两种思维模式正面碰撞,价值观的冲突往往呈现出撕裂性:普世价值者会被指责“天真幼稚”,丛林法则者则被视为“冷血功利”。前者难以理解为何情谊可以被利益轻易置换,后者无法认同“无目的的善意”存在的意义。这种认知鸿沟若无法调和,终将导致关系的破裂——本质上,这是“人性文明”与“生物本能”的对抗:一方在构建精神共同体,另一方在维护生存竞争场。古人云“小人畏威不畏德”道破了丛林思维的本质:这类人屈服于力量而非尊重德行,习惯用撕咬踩踏确立地位,将“弱肉强食”奉为唯一规则。如何去做真正的教养从来是“尊上而不欺下”——对强者保持平等姿态,对弱者给予尊严守护。恃强凌弱从来不是真正的强大,而无原则的退让也绝非善良——健康的关系,始于清晰的边界:对值得的人温暖如春,对践踏善意的人,保留收回温柔的勇气。毕竟,人性的善良,从不应成为被掠夺的弱点。上善若水,水利万物而不争。
2025年04月13日
7 阅读
0 评论
1 点赞
科研突围指南:真科研or形式主义?
写这篇的目的感觉自己微信公众号被限流了, 科研是别人的奶酪! 以前阅读量有几万的,现在不过千。但是还是想发出来。 在公众号上面是不能发,在我自己的网站应该没事吧。2025-04-10 23:57:00 星期四首先,我自认为不属于科研圈,因为我没有制造学术垃圾,也没有水论文,没有马上失业也是领导关照。每个人对于科研都有自己的看法,我也并没有闲着,只是想做真研究,研究如何能让学生看的懂,随时学,学的明白,研究的怎么能帮到更多像我这样出身,农村走出来上学的孩子。内卷的环境很难培养纯粹的人,大家都为了帽子你争我抢,头破血流。大圈子小圈子,山头林立。想要活下来,就要彻底黑化。当然读博也不再是为了在自己有兴趣去做研究,大多是为了刷个学历,混个好点的活儿,找个好点的工作,或者说,只要给他那张纸,其实不去读书马上拿个证他也乐意。中国科研圈子就像全民参与的富土康,我们用着全球1%的经费投入,卷出了30%的论文产量,这是很吓人的,前段时间看一个新闻说,一个高中生都在跟着某团队水论文。诸葛亮舌战群儒的时候也曾被酸儒问到,先生治何经典,就如现在某人问你,你发了几篇核心一样。实话实说,博士产出的90%的论文都是为了毕业,其实没有任何学术价值,那本科生写的论文,也顶多是科研数据被盗去的时候起到迷惑敌国的作用,人家肯定看不懂这写的什么东西。所以说,我们到底是不是‘学术强国’? 是也不是。虽然遥遥领先被我们张口就来,但是把一篇文章拆成几篇,再把数据揉碎了,喂给不同期刊的不在少数吧。水论文自然要跟当下热点,比如自己明明就AI毛也不懂,为了好发,我自然要化身AI专家。今天追 AI ,明天蹭量子,选题像极了直播间抢购 ——"家人们!Nature 爆款选题3、2、1上链接!"如果靠研究 "古代蟋蟀叫对哲学的影响" 拿国基,那是不是一件很扯蛋的事。论文是所谓的42号钢筋拌意大利面出来的那种。为赋新词必须强说愁。最魔幻的是搞原创的老师却成了“科研圈five”。毕竟在现在行规则下,你做出了什么样的教学创新,都不如拆十篇论文来的香。前者穷其一生可能没有收获,后者靠垃圾水文三年喜提“副叫兽”。作为科研牛马的你可能有不同意见,你白天是不是当会计做预算,晚上变身秘书写报告,周末客串导游接领导。要说科研,那是开会间隙摸鱼完成的。项目书要求8000字,你得写8万,比《三国演义》都要厚才行。结题报告比成果还多,话说你那个成果是不是造的,你自己最清楚喽。还要不断的虚伪地给自己扣帽子,明明出国去旅游一圈,非得说是海外留学归来。从“青椒”到“长江学者”,不整全“四青”,都不好意思说自己是混过学术界的。至于经费,报销单上是有的,会务费里找不到!!!有人的地方就有江湖,在这个充满人情事故的圈子里,“师承”远比能力重要的多!你真以为自己强就行?那只是前提条件。大佬们掌控期刊、项目、评奖的生杀大权,年轻人想出头?先学林教头纳了 "投名状" 再说。一边痛骂 "西方学术霸权",一边把发 CNS 当终极 KPI,要是发了篇Nature那就又不得了了,到处官宣,典型的 "嘴上说不要身体很诚实"。导师抢一作让你懂事,没导师你发的出得来么。至于数据不足,造呗,不过是技术性调整罢了...........还有人认为发中文核心的是 "土鳖",发 SCI 的是 "海归预备役",发 CNS 的直接封神,关键你要看你导师有什么资源难道靠你那三脚喵的功夫啊。当然也可能有连知网都没有上去过的PhD。如果想要在你的科研生活中屹立不倒怎么办? 三个建议: 保持好奇心与专注度构建良好的学术网路培养坚韧的心理素质 要改变,要适应,光羡慕别人有什么用,我们要变得比他们更狠更有钱公众号关注者大部分为IT技术者+交易者,应该没人会看科研圈子的事。至于本文的写作目的,只是希望大家做点实事,切实的为人民服务,或者为人民的孩子服务,不要急功近利,用心做真科研。用心教学,让咱老百姓的孩子们最终受益。 崇拜那些真学者、大先生和敢讲真话的人! (本文纯属虚构,如有雷同,实属巧合) 配图出处:周志华老师2007年9月分享的PPT <<如何做研究与写论文>>
2025年04月10日
34 阅读
0 评论
3 点赞
2025-04-09
此内容被密码保护
加密文章,请前往内页查看详情
2025年04月09日
37 阅读
0 评论
0 点赞
2025-04-08
此内容被密码保护
加密文章,请前往内页查看详情
2025年04月08日
37 阅读
0 评论
1 点赞
2025-03-26
新版郑科大专属草莓熊!
# -*- coding: UTF-8 -*- import turtle as t import datetime import time import math import random # 设置背景颜色,窗口位置以及大小 t.colormode(255)# 颜色模式 t.speed(0) t.screensize(900,760,"#010812")#画布大小背景颜色 t.setup(width=900, height=760,startx=None, starty=None) #绘图窗口的大小和起始坐标 #t.bgpic("cmx4_di1.gif") t.title("卷王草莓熊!")#设置绘图窗口的标题 t.resizemode('noresize') #大小调整模式:auto,user,noresize t.tracer(1) print('欢迎报考郑科大!!!') print('请把小熊送给你亲爱的人!') def mlingpen(x, y): t.penup() t.goto(x, y) t.pendown() # 画出玫瑰 def rose(): #rose t.seth(90) mlingpen(-225, -60) t.pensize(10) t.pencolor("#035025") t.circle(300,30) mlingpen(-240, 70) t.pensize(2) t.color("#000000", "#22ac38") t.seth(12) mlingpen(-235,40) t.lt(40) t.fd(50) t.begin_fill() t.circle(-150,30) t.circle(-2,140) t.circle(-150,43) t.up() t.end_fill() mlingpen(-235,40) t.lt(330) t.fd(50) t.begin_fill() t.circle(-150,30) t.circle(-2,140) t.circle(-150,43) t.up() t.end_fill() mlingpen(-235,40) t.lt(260) t.fd(50) t.begin_fill() t.circle(-150,30) t.circle(-2,140) t.circle(-150,43) t.up() t.end_fill() t.pensize(2) t.seth(12) mlingpen(-210,60) t.begin_fill() t.color("#000000", "#f8c0c8") t.circle(50,150) t.rt(20) t.fd(40) t.rt(40) t.circle(15,130) t.fd(50) t.circle(15,80) t.up() t.end_fill() t.pensize(2) t.seth(12) mlingpen(-210,65) t.begin_fill() t.color("#f5aab5", "#f5aab5") t.circle(34,150) t.rt(20) t.fd(30) t.rt(40) t.circle(10,130) t.fd(50) t.circle(15,80) t.up() t.end_fill() t.pensize(2) t.seth(12) mlingpen(-210,65) t.begin_fill() t.color("#f198a5", "#f198a5") t.circle(30,150) t.rt(20) t.fd(30) t.rt(40) t.circle(10,130) t.fd(50) t.circle(15,80) t.up() t.end_fill() t.pensize(2) t.seth(12) mlingpen(-210,65) t.begin_fill() t.color("#ee8998", "#ee8998") t.circle(20,150) t.rt(20) t.fd(30) t.rt(40) t.circle(10,130) t.fd(50) t.circle(15,80) t.up() t.end_fill() mlingpen(-220,80) t.begin_fill() t.color("#e56e7f", "#e56e7f") t.circle(15,200) t.rt(20) t.fd(30) t.rt(40) t.circle(10,130) t.fd(50) t.circle(15,80) t.up() t.end_fill() t.seth(35) mlingpen(-230,90) t.begin_fill() t.color("#000000", "#fda7b5") t.circle(50,50) t.rt(40) t.circle(25,200) t.up() t.end_fill() t.seth(130) mlingpen(-294.51,142.14) t.begin_fill() t.color("#000000", "#fdadb8") t.circle(20,100) t.rt(90) t.circle(10,180) t.rt(90) t.circle(15,130) t.rt(110) t.circle(30,130) t.rt(50) t.circle(50,80) t.up() t.end_fill() t.seth(80) mlingpen(-240,140) t.begin_fill() t.color("#000000", "#fe8e9e") t.circle(10,100) t.rt(90) t.circle(12,150) t.rt(90) t.circle(15,130) t.rt(50) t.circle(50,80) t.rt(10) t.circle(50,80) t.goto(-240,140) t.up() t.end_fill() t.seth(80) mlingpen(-250,140) t.begin_fill() t.color("#f9788b", "#f9788b") t.circle(5,130) t.rt(90) t.circle(10,170) t.rt(100) t.circle(10,130) t.rt(70) t.circle(40,80) t.rt(40) t.circle(30,30) t.goto(-250,140) t.up() t.end_fill() t.seth(10) mlingpen(-245, 80) t.begin_fill() t.color("#000000", "#ef5f7a") t.seth(35) t.circle(30,80) t.rt(80) t.circle(10,150) t.rt(80) t.circle(17,200) t.rt(60) t.circle(29,120) t.goto(-245, 80) t.up() t.end_fill() t.seth(10) mlingpen(-250, 85) t.begin_fill() t.color("#ef758c", "#ef758c") t.seth(35) t.circle(25,80) t.rt(80) t.circle(6,150) t.rt(80) t.circle(12,210) t.rt(60) t.circle(23,120) t.goto(-250, 85) t.up() t.end_fill() t.seth(0) mlingpen(-250,125) t.pensize(5) t.dot("#ff4969") t.pensize(2) mlingpen(-266.97,121.26) t.pencolor("#321320") t.fillcolor("#f04969") t.begin_fill() t.rt(80) t.circle(12,150) t.rt(80) t.circle(6,270) t.rt(150) t.circle(10,180) t.up() t.end_fill() #t.color("#000000", "#f04969") t.seth(-70) mlingpen(-210,100) t.begin_fill() t.color("#000000", "#f04969") t.rt(20) t.fd(30) t.circle(-40,170) t.lt(20) t.fd(20) t.goto(-210,100) t.up() t.end_fill() t.seth(-70) mlingpen(-215,90) t.begin_fill() t.color("#ee627d", "#ee627d") t.rt(20) t.fd(20) t.circle(-35,170) t.lt(20) t.fd(15) t.goto(-220,90) t.up() t.end_fill() t.seth(-70) mlingpen(-220,80) t.begin_fill() t.color("#f47a91", "#f47a91") t.rt(20) t.fd(10) t.circle(-28,170) t.lt(20) t.fd(10) t.goto(-220,90) t.up() t.end_fill() t.seth(150) mlingpen(-220,100) t.begin_fill() t.color("#000000", "#f7cad1") t.circle(20,80) t.rt(10) t.circle(-40,70) t.rt(10) t.circle(20,80) t.rt(5) t.circle(5,180) t.rt(80) t.circle(20,70) t.rt(80) t.circle(40,60) t.rt(10) t.circle(40,110) t.goto(-220,100) t.up() t.end_fill() t.seth(150) mlingpen(-220,98) t.begin_fill() t.color("#ffe9f2", "#ffe9f2") t.circle(15,80) t.rt(7) t.circle(-45,75) t.rt(8) t.circle(20,50) t.rt(5) t.circle(2,200) t.rt(80) t.circle(15,85) t.rt(80) t.circle(40,60) t.rt(20) t.circle(30,70) t.goto(-220,98) t.up() t.end_fill() t.seth(150) mlingpen(-180,55) t.begin_fill() t.color("#000000", "#f7cad1") t.circle(30,80) t.rt(10) t.circle(-60,70) t.rt(5) t.circle(30,80) t.rt(5) t.circle(5,180) t.rt(90) t.circle(30,80) t.rt(80) t.circle(40,70) t.circle(20,50) t.rt(90) t.circle(20,95) t.goto(-180,55) t.up() t.end_fill() t.seth(150) mlingpen(-190,50) t.begin_fill() t.color("#f7e0e3", "#f7e0e3") t.circle(25,80) t.rt(8) t.circle(-55,75) t.rt(3) t.circle(25,60) t.rt(6) t.circle(5,200) t.rt(90) t.circle(30,80) t.rt(80) t.circle(22,80) t.circle(20,40) t.rt(80) t.circle(15,90) t.goto(-190,50) t.up() t.end_fill() mling_circle_list = iter([ # 每段弧线(半径,弧角度数) (18, 360), (14, 360), (10, 360), (6, 360), (18, 360), (14, 360), (10, 360), (6, 360), ]) # 画出眉毛 def mling_draw_eyeball(zb1,zb2,zb3,zb4): for zb, color_ in zip([zb1,zb2,zb3,zb4], ['#ffffff', '#482d08', '#000000', '#ffffff']): t.penup() t.goto(*zb) t.pendown() t.begin_fill() t.setheading(0) t.color(color_) t.pencolor('#000000') t.pensize(2) t.circle(*next(mling_circle_list)) t.end_fill() t.penup() p = t.home() t.pencolor("#321320") t.fillcolor("#cb3263") t.pensize(4) t.goto(120,110) t.pendown() t.begin_fill() t.goto(200,0) t.left(-40) t.circle(-110,105) t.left(75) t.goto(170,-110) t.left(-80) t.circle(30,40) t.left(60) t.circle(-80,70) t.left(83) t.circle(-35,95) t.goto(60,-270) t.left(-80) t.circle(-65,70) t.left(63) t.circle(35,30) t.left(130) t.circle(-65,70) t.goto(-120,-270) t.left(-110) t.circle(-35,80) t.left(83) t.circle(-80,50) t.left(60) t.circle(-80,60) t.left(60) t.circle(30,30) t.left(20) t.circle(80,80) t.left(-105) t.circle(-70,150) t.left(50) t.circle(-170,50) t.goto(120,110) t.end_fill() t.penup() p = t.home() t.pencolor("#321320") t.fillcolor("#ffffff") t.pensize(4) t.goto(90,60) t.pendown() t.begin_fill() t.right(30) t.circle(-130,360) t.end_fill() t.penup() p = t.home() t.pencolor("#321320") #t.fillcolor("#f3d2ad") t.fillcolor("#015426") t.pensize(4) t.goto(-250,-55) t.dot("blue") t.seth(0) t.pendown() t.begin_fill() t.right(-55) #t.circle(-45,270) t.circle(-35,70) t.goto(-200,-165) t.goto(-250,-165) t.goto(-220,-75) t.goto(-250,-55) t.end_fill() rose() t.penup() p = t.home() t.pencolor("#321320") #t.fillcolor("#f3d2ad") t.fillcolor("#f3d2ad") t.pensize(4) t.goto(185,-90) t.pendown() t.begin_fill() t.right(140) t.circle(43,95) t.goto(185,-90) t.end_fill() t.penup() t.seth(0) t.pencolor('#321320') t.fillcolor('#cb3263') t.pensize(4) t.begin_fill() t.goto(21,0) t.pendown() t.circle(123,134) t.left(-90) t.circle(40,185) t.left(-60) t.circle(120,60) t.left(-90) t.circle(50,200) t.left(-90) t.circle(100,100) t.left(-12) t.circle(100,40) t.goto(21,0) t.penup() #Author:Adversity Awake t.end_fill() t.penup() t.goto(0, 0) t.seth(0) t.pencolor('#321320') t.fillcolor('#ffffff') t.pensize(4) t.begin_fill() t.goto(-70,210) t.left(140) t.pendown() t.circle(30,200) t.goto(-70,210) t.penup() t.end_fill() t.penup() t.goto(0, 0) t.seth(0) t.pencolor('#321320') t.fillcolor('#ffffff') t.pensize(4) t.begin_fill() t.goto(90,220) t.left(45) t.pendown() t.circle(22,200) t.goto(90,220) t.penup() t.end_fill() t.penup() t.goto(0, 0) t.seth(0) t.pencolor('#321320') t.fillcolor('#ffffff') t.pensize(4) t.begin_fill() t.left(-98) t.left(90) t.goto(18,10) t.pendown() t.circle(100,134) t.left(10) t.circle(110,30) t.left(10) t.circle(160,40) t.circle(85,40) t.left(2) t.circle(95,40) t.left(5) t.circle(95,60) t.goto(18,10) t.penup() t.end_fill() t.penup() p = t.home() t.pencolor("#321320") t.fillcolor("#8f3a52") t.pensize(2) t.goto(25,240) t.pendown() t.begin_fill() t.goto(60,235) t.left(30) t.fd(8) t.left(90) t.fd(22) t.circle(90, 8) t.left(20) t.circle(90, 8) t.left(20) t.circle(90, 20) t.left(40) t.circle(50, 20) t.end_fill() t.penup() t.pensize(12) t.goto(-2,250) t.pencolor("#4D1F00") t.fillcolor("#4D1F00") t.pendown() t.goto(60,240) t.end_fill() t.penup() p = t.home() t.pencolor("#321320") t.fillcolor("#8f3a52") t.pensize(2) t.goto(-55,193) t.pendown() t.begin_fill() t.left(65) t.circle(-90, 25) t.goto(-10,230) t.left(30) t.fd(8) t.left(90) t.fd(18) t.circle(90, 8) t.left(20) t.circle(90, 10) t.left(40) t.circle(90, 30) t.left(30) t.circle(40, 20) t.penup() t.end_fill() t.pensize(12) t.goto(-63,195) t.pencolor("#4D1F00") t.fillcolor("#4D1F00") t.pendown() t.left(100) t.circle(-85,45) t.end_fill() mling_draw_eyeball((-20,180), (-23,185), (-25,188), (-30,200)) mling_draw_eyeball((30, 193), (27, 200), (25,203), (20,213)) t.penup() p = t.home() t.pencolor("#321320") t.fillcolor("#8f3a52") t.pensize(3) t.goto(25,105) p = t.pos() t.pendown() t.begin_fill() t.circle(85, 65) t.left(16) t.circle(30, 55) t.left(20) t.circle(145, 58) t.left(8) t.circle(20, 55) t.left(8) t.circle(50, 65) t.left(-5) t.circle(310, 8) t.end_fill() t.penup() t.goto(0, 0) t.seth(0) t.pencolor('#321320') t.fillcolor('#a93e54') t.pensize(3) t.begin_fill() t.left(-20) t.goto(9,66) t.pendown() t.circle(68,40) t.left(10) t.circle(65,40) t.left(160) t.circle(-75,85) t.left(158) t.circle(48,37) t.goto(9,66) t.penup() t.end_fill() t.color('#987824') t.penup() #t.goto(260,60) #t.pendown() mlingpen(260,60) t.write("欢\n迎\n报\n考\n郑\n科\n大\n!\n", align="center", font=("黑体", 22, "normal")) t.penup() t.goto(300, 195) t.pendown() t.write("各\n位\n学\n子\n们\n", align="center", font=("黑体", 22, "normal")) # 画出礼物 def GiftBox(): #GiftBox #AdversityAwake t.seth(-90) t.pencolor('#ca7124') t.fillcolor('#fddeaf') t.pensize(3) mlingpen(266,-55) t.begin_fill() t.fd(130) t.rt(80) t.fd(80) t.rt(100) t.fd(132) t.rt(80) t.goto(266,-55) t.up() t.end_fill() #AdversityAwake t.seth(-90) t.pencolor('#ca7124') t.fillcolor('#f8b756') t.pensize(3) mlingpen(186,-70) t.begin_fill() t.fd(130) t.rt(110) t.fd(110) t.rt(70) t.fd(110) t.rt(80) t.goto(186,-70) t.up() t.end_fill() #AdversityAwake t.seth(0) t.pencolor('#ca7124') t.fillcolor('#e8a846') t.pensize(3) mlingpen(186,-35) t.begin_fill() t.lt(6) t.fd(86) t.lt(170) t.fd(90) t.goto(80,-23) t.goto(186,-35) t.end_fill() t.up() #AdversityAwake t.seth(-90) t.pencolor('#ca7124') t.fillcolor('#fce3b8') t.pensize(3) mlingpen(270,-25) t.begin_fill() t.fd(30) t.rt(80) t.fd(85) t.rt(105) t.fd(34) t.rt(80) t.goto(270,-25) t.end_fill() t.up() t.seth(-90) t.pencolor('#ca7124') t.fillcolor('#e8a846') t.pensize(3) mlingpen(186,-34) t.begin_fill() t.fd(34) t.rt(100) t.fd(110) t.rt(78) t.fd(30) t.rt(75) t.goto(186,-34) t.end_fill() t.up() #AdversityAwake t.seth(90) t.pencolor('#fe000b') t.fillcolor('#fe000b') t.pensize(20) mlingpen(130,-55) t.fd(26) t.rt(80) t.fd(90) t.bk(40) t.rt(25) t.fd(50) t.rt(80) t.goto(240,-60) t.dot(30,"white") mlingpen(170,-20) t.goto(130,10) t.goto(110,-10) t.goto(170,-20) mlingpen(170,-20) t.goto(230,15) t.goto(250,-10) t.goto(170,-20) t.up() t.dot(30,"white") mlingpen(190,-10) t.dot(30,"white") mlingpen(130,-55) t.dot(30,"white") GiftBox() # 画出距离春节时间 def FromSpring(): #julichunjie #springdate = time.strftime(2023, 1, 22, 0, 0, 0) # 新的一年的日期 springdate = datetime.datetime(2025, 6, 7) springdate1 = datetime.datetime(2026,2,10) today = datetime.datetime.now() # 获取当前的日期 day = (springdate - today).days # 元旦日期减去当前日期 day1 = (springdate1 - today).days # 新年日期减去当前日期 mlingpen(-350,235) t.write('距离高考还有:', font=("黑体", 12, "bold")) mlingpen(-220,245) for i in str(day): draw7Dight(eval(i)) mlingpen(-133,220) t.write('天\n', font=("黑体", 12, "bold")) mlingpen(-350,200) t.write('距离春节还有:', font=("黑体", 12, "bold")) mlingpen(-220,205) for i in str(day1): draw7Dight(eval(i)) mlingpen(-133,185) t.write('天\n', font=("黑体", 12, "bold")) # 画出距离圣诞时间 def FromChristmas(): #FromChristmas shengdandate = datetime.datetime(2025, 5,1, 0, 0, 0) # 新的一年的日期 today = datetime.datetime.now() # 获取当前的日期 day = (shengdandate - today).days # 新年日期减去当前日期 #print("离圣诞节还有" + str(day) + "天" + '\r') t.write('距五一还有:', font=("黑体", 12, "bold")) mlingpen(-220,280) for i in str(day): draw7Dight(eval(i)) mlingpen(-133,260) t.write('天\n', font=("黑体", 12, "bold")) # 数码管 def drawLine(draw):#绘制某单段(行或列)数码管的函数 t.pd() if draw else t.pu()#如果有就落笔,没有就抬笔 t.fd(10)# 向前绘制10 t.right(90)#顺时针转90度 def draw7Dight(dight):#根据数字绘制七段数码管 drawLine(True) if dight in [2, 3, 4, 5, 6, 8, 9] else drawLine(False) #判断第1段数码管(如果数字为2, 3, 4, 5, 6, 8, 9中的一个则需要落笔绘制) drawLine(True) if dight in [0, 1, 3, 4, 5, 6, 7, 8, 9] else drawLine(False) #判断第2段数码管,(如果数字为0, 1, 3, 4, 5, 6, 7, 8, 9中的一个则需要落笔绘制) drawLine(True) if dight in [0, 2, 3, 5, 6, 8, 9] else drawLine(False) #判断第3段数码管(如果数字为0, 2, 3, 5, 6, 8, 9中的一个则需要落笔绘制) drawLine(True) if dight in [0, 2, 6, 8] else drawLine(False) #判断第4段数码管,(如果数字为0, 2, 6, 8中的一个则需要落笔绘制) t.left(90) #走完1234段数码管,到第5段时需直走,在原来right90的基础上恢复过来就left90 drawLine(True) if dight in [0, 4, 5, 6, 8, 9] else drawLine(False) #判断第5段数码管(如果数字为0, 4, 5, 6, 8, 9则需要落笔绘制) drawLine(True) if dight in [0, 2, 3, 5, 6, 7, 8, 9] else drawLine(False) #判断第6段数码管,(如果数字为0, 2, 3, 5, 6, 7, 8, 9则需要落笔绘制) drawLine(True) if dight in [0, 1, 2, 3, 4, 7, 8, 9] else drawLine(False) #判断第7段数码管,(如果数字为0, 1, 2, 3, 4, 7, 8, 9则需要落笔绘制) t.right(180)#调整方向,让下一个绘制回归原点 t.penup()#抬笔,停止绘制 t.fd(20)#前进20,为后续数字确定绘制位置 def draw7DightDate(date):#将取得的日期数据按七段数码管的形式处理显示, t.pencolor("red") for i in date: if i == '-':#按分隔符处理年 t.write('年', font=("黑体", 12, "normal")) #t.pencolor("green") t.fd(40) elif i == '=':#按分隔符处理月 t.write('月', font=("黑体", 12, "normal")) #t.pencolor("blue") t.fd(40) elif i == '+':#按分隔符处理日 t.write('日', font=("黑体", 12, "normal")) t.pencolor("red") t.fd(40) elif i == '/':#按分隔符处理时 t.write('时', font=("黑体", 12, "normal")) #t.pencolor("green") t.fd(40) elif i == '*':#按分隔符处理分 t.write('分', font=("黑体", 12, "normal")) #t.pencolor("blue") t.fd(40) elif i == '.':#按分隔符处理秒 t.write('秒', font=("黑体", 12, "normal")) t.fd(40) else: #绘制数码管数字 draw7Dight(eval(i)) mlingpen(-350,330) t.pencolor("white") t.write('现在是:', font=("黑体", 12, "bold")) mlingpen(-280,330) t.seth(0) t.pensize(5) draw7DightDate(time.strftime('%Y-%m=%d+', time.localtime())) t.pencolor("white") mlingpen(-350,290) t.write('不算今天', font=("黑体", 10, "normal")) mlingpen(-350,270) FromChristmas() mlingpen(-350,250) FromSpring() t.pensize(1) for j in range(100): x = random.randint(-400, 400) y = random.randint(-300,300) dx = random.randint(1,10) for i in range(6): t.penup() t.goto(x, y) t.pendown() t.pencolor('white') t.forward(dx) t.left(60) t.circle(2) t.goto(x, y) t.hideturtle() t.done()
2025年03月26日
28 阅读
0 评论
0 点赞
1
2
...
16