【程序员的浪漫】圣诞节到了,何不送给Ta一份程序员的浪漫(1)

先自我介绍一下,小编浙江大学毕业,去过华为、字节跳动等大厂,目前阿里P7

深知大多数程序员,想要提升技能,往往是自己摸索成长,但自己不成体系的自学效果低效又漫长,而且极易碰到天花板技术停滞不前!

因此收集整理了一份《2024年最新Python全套学习资料》,初衷也很简单,就是希望能够帮助到想自学提升又不知道该从何学起的朋友。
img
img



既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,涵盖了95%以上Python知识点,真正体系化!

由于文件比较多,这里只是将部分目录截图出来,全套包含大厂面经、学习笔记、源码讲义、实战项目、大纲路线、讲解视频,并且后续会持续更新

如果你需要这些资料,可以添加V获取:vip1024c (备注Python)
img

正文

min-height: 100vh;

display: flex;

align-items: center;

justify-content: center;

perspective: 1200px;

transform-style: preserve-3d;

}

.tree {

position: relative;

height: 50vmin;

width: 25vmin;

transform-style: preserve-3d;

-webkit-animation: spin 2s infinite linear;

animation: spin 2s infinite linear;

}

.tree__light {

transform-style: preserve-3d;

position: absolute;

height: 1vmin;

width: 1vmin;

border-radius: 50%;

-webkit-animation: flash calc(var(–speed) * 1s) calc(var(–delay) * 1s) infinite steps(4), appear 0.5s calc(var(–appear) * 0.05s) both;

animation: flash calc(var(–speed) * 1s) calc(var(–delay) * 1s) infinite steps(4), appear 0.5s calc(var(–appear) * 0.05s) both;

left: 50%;

transform: translate(-50%, 50%) rotateY(calc(var(–rotate, 0) * 1deg)) translate3d(0, 0, calc(var(–radius, 0) * 1vmin));

bottom: calc(var(–y, 0) * 1%);

}

.tree__star {

stroke-width: 5vmin;

stroke: #f5e0a3;

filter: drop-shadow(0 0 2vmin #fcf1cf);

height: 5vmin;

width: 5vmin;

overflow: visible !important;

bottom: 100%;

left: 50%;

transform: translate(-50%, 0);

position: absolute;

stroke-dasharray: 1000 1000;

fill: none;

-webkit-animation: stroke 1s calc((var(–delay) * 0.95) * 0.05s) both;

animation: stroke 1s calc((var(–delay) * 0.95) * 0.05s) both;

}

@-webkit-keyframes stroke {

from {

stroke-dashoffset: -1000;

}

}

@keyframes stroke {

from {

stroke-dashoffset: -1000;

}

}

@-webkit-keyframes spin {

to {

transform: rotateY(360deg);

}

}

@keyframes spin {

to {

transform: rotateY(360deg);

}

}

@-webkit-keyframes appear {

from {

opacity: 0;

}

}

@keyframes appear {

from {

opacity: 0;

}

}

@-webkit-keyframes flash {

0%, 100% {

background: #f00;

}

20% {

background: #fff;

}

40% {

background: #f00;

}

60% {

background: #fff;

}

80% {

background: #f00;

}

}

@keyframes flash {

0%, 100% {

background: #f00;

}

20% {

background: #fff;

}

40% {

background: #f00;

}

60% {

background: #fff;

}

80% {

background: #f00;

}

}

三、使用HTML+CSS+JS制作的圣诞树


演示地址:http://haiyong.site/christmastree3(最好在PC端预览)

HTML比较长,打包放在源码里,文末自行领取

完整CSS

body {

background-color:#151522;

overflow: hidden;

display: flex;

align-items: center;

justify-content: center;

}

body,

html {

height: 100%;

width: 100%;

margin: 0;

padding: 0;

}

svg{

width:90%;

height:90%;

visibility:hidden;

}

部分JS

MorphSVGPlugin.convertToPath(‘polygon’);

var xmlns = “http://www.w3.org/2000/svg”,

xlinkns = “http://www.w3.org/1999/xlink”,

select = function(s) {

return document.querySelector(s);

},

selectAll = function(s) {

return document.querySelectorAll(s);

},

pContainer = select(‘.pContainer’),

mainSVG = select(‘.mainSVG’),

star = select(‘#star’),

sparkle = select(‘.sparkle’),

tree = select(‘#tree’),

showParticle = true,

particleColorArray = [‘#E8F6F8’, ‘#ACE8F8’, ‘#F6FBFE’,‘#A2CBDC’,‘#B74551’, ‘#5DBA72’, ‘#910B28’, ‘#910B28’, ‘#446D39’],

particleTypeArray = [‘#star’,‘#circ’,‘#cross’,‘#heart’],

particlePool = [],

particleCount = 0,

numParticles = 201

gsap.set(‘svg’, {

visibility: ‘visible’

})

gsap.set(sparkle, {

transformOrigin:‘50% 50%’,

y:-100

})

let getSVGPoints = (path) => {

let arr = []

var rawPath = MotionPathPlugin.getRawPath(path)[0];

rawPath.forEach((el, value) => {

let obj = {}

obj.x = rawPath[value * 2]

obj.y = rawPath[(value * 2) + 1]

if(value % 2) {

arr.push(obj)

}

})

return arr;

}

let treePath = getSVGPoints(‘.treePath’)

var treeBottomPath = getSVGPoints(‘.treeBottomPath’)

var mainTl = gsap.timeline({delay:0, repeat:0}), starTl;

function flicker§{

gsap.killTweensOf(p, {opacity:true});

gsap.fromTo(p, {

opacity:1

}, {

duration: 0.07,

opacity:Math.random(),

repeat:-1

})

}

function createParticles() {

var i = numParticles, p, particleTl, step = numParticles/treePath.length, pos;

while (–i > -1) {

p = select(particleTypeArray[i%particleTypeArray.length]).cloneNode(true);

mainSVG.appendChild§;

p.setAttribute(‘fill’, particleColorArray[i % particleColorArray.length]);

p.setAttribute(‘class’, “particle”);

particlePool.push§;

gsap.set(p, {

x:-100,

y:-100,

transformOrigin:‘50% 50%’

})

}

}

var getScale = gsap.utils.random(0.5, 3, 0.001, true);

function playParticle§{

if(!showParticle){return};

var p = particlePool[particleCount]

gsap.set(p, {

x: gsap.getProperty(‘.pContainer’, ‘x’),

y: gsap.getProperty(‘.pContainer’, ‘y’),

scale:getScale()

}

);

var tl = gsap.timeline();

tl.to(p, {

duration: gsap.utils.random(0.61,6),

physics2D: {

velocity: gsap.utils.random(-23, 23),

angle:gsap.utils.random(-180, 180),

gravity:gsap.utils.random(-6, 50)

},

scale:0,

rotation:gsap.utils.random(-123,360),

ease: ‘power1’,

onStart:flicker,

onStartParams:[p],

//repeat:-1,

onRepeat: § => {

gsap.set(p, {

scale:getScale()

})

},

onRepeatParams: [p]

});

particleCount++;

particleCount = (particleCount >=numParticles) ? 0 : particleCount

}

function drawStar(){

starTl = gsap.timeline({onUpdate:playParticle})

starTl.to(‘.pContainer, .sparkle’, {

duration: 6,

motionPath :{

path: ‘.treePath’,

autoRotate: false

},

ease: ‘linear’

})

.to(‘.pContainer, .sparkle’, {

duration: 1,

onStart:function(){showParticle = false},

x:treeBottomPath[0].x,

y:treeBottomPath[0].y

})

.to(‘.pContainer, .sparkle’, {

duration: 2,

onStart:function(){showParticle = true},

motionPath :{

path: ‘.treeBottomPath’,

autoRotate: false

},

ease: ‘linear’

},‘-=0’)

.from(‘.treeBottomMask’, {

duration: 2,

drawSVG:‘0% 0%’,

stroke:‘#FFF’,

ease:‘linear’

},‘-=2’)

}

createParticles();

drawStar();

//ScrubGSAPTimeline(mainTl)

mainTl.from([‘.treePathMask’,‘.treePotMask’],{

duration: 6,

drawSVG:‘0% 0%’,

stroke:‘#FFF’,

stagger: {

each: 6

},

duration: gsap.utils.wrap([6, 1,2]),

ease:‘linear’

})

.from(‘.treeStar’, {

duration: 3,

//skewY:270,

scaleY:0,

scaleX:0.15,

transformOrigin:‘50% 50%’,

ease: ‘elastic(1,0.5)’

},‘-=4’)

.to(‘.sparkle’, {

duration: 3,

opacity:0,

ease:“rough({strength: 2, points: 100, template: linear, taper: both, randomize: true, clamp: false})”

},‘-=0’)

.to(‘.treeStarOutline’, {

duration: 1,

opacity:1,

ease:“rough({strength: 2, points: 16, template: linear, taper: none, randomize: true, clamp: false})”

},‘+=1’)

mainTl.add(starTl, 0)

gsap.globalTimeline.timeScale(1.5);

四、只使用 CSS 的流星圣诞树


演示地址:http://haiyong.site/christmastree4(响应式的,手机和PC端都可预览)

在这里插入图片描述

HTML代码

      • CSS代码

        :root {

        –background:#3C3B3D;

        }

        body {

        background: var(–background);

        }

        body ul {

        padding: 0;

        }

        body ul li {

        list-style: none;

        }

        body ul:nth-child(1) {

        position: absolute;

        top: 20vh;

        left: 50%;

        width: 1rem;

        height: 1rem;

        border-radius: 100%;

        transform: translate(-50%, -50%);

        }

        body ul:nth-child(1) li {

        position: absolute;

        width: 0;

        height: 0;

        border-width: 0 0.5rem 1rem 0.5rem;

        border-style: solid;

        border-color: transparent;

        border-bottom-color: #FFCE54;

        transform-origin: 0.5rem 1rem;

        }

        body ul:nth-child(1) li:nth-child(0) {

        transform: rotate(0deg);

        }

        body ul:nth-child(1) li:nth-child(1) {

        transform: rotate(72deg);

        }

        body ul:nth-child(1) li:nth-child(2) {

        transform: rotate(144deg);

        }

        body ul:nth-child(1) li:nth-child(3) {

        transform: rotate(216deg);

        }

        body ul:nth-child(1) li:nth-child(4) {

        transform: rotate(288deg);

        }

        body ul:nth-child(2) li {

        position: absolute;

        top: 20vh;

        left: 50%;

        width: 0.0625rem;

        height: 60vh;

        transform-origin: 50% 0%;

        }

        body ul:nth-child(2) li:nth-child(1) {

        transform: rotate(4.9322004015deg);

        }

        body ul:nth-child(2) li:nth-child(1):before, body ul:nth-child(2) li:nth-child(1):after {

        -webkit-animation-delay: -0.015625s;

        animation-delay: -0.015625s;

        }

        body ul:nth-child(2) li:nth-child(2) {

        transform: rotate(7.7960629984deg);

        }

        body ul:nth-child(2) li:nth-child(2):before, body ul:nth-child(2) li:nth-child(2):after {

        -webkit-animation-delay: -0.03125s;

        animation-delay: -0.03125s;

        }

        body ul:nth-child(2) li:nth-child(3) {

        transform: rotate(10.5294548885deg);

        }

        body ul:nth-child(2) li:nth-child(3):before, body ul:nth-child(2) li:nth-child(3):after {

        -webkit-animation-delay: -0.046875s;

        animation-delay: -0.046875s;

        }

        /* … */

        /* 一样的规律,一直到第256 */

        body ul:nth-child(2) li:nth-child(256) {

        transform: rotate(2deg);

        }

        body ul:nth-child(2) li:nth-child(256):before, body ul:nth-child(2) li:nth-child(256):after {

        -webkit-animation-delay: -4s;

        animation-delay: -4s;

        }

        body ul:nth-child(2) li:before, body ul:nth-child(2) li:after {

        content: “”;

        position: absolute;

        top: 0%;

        -webkit-animation: fall 4s linear infinite;

        animation: fall 4s linear infinite;

        }

        body ul:nth-child(2) li:before {

        width: 0.0625rem;

        height: 3rem;

        background: linear-gradient(rgba(46, 204, 113, 0), rgba(46, 204, 113, 0.5));

        }

        body ul:nth-child(2) li:after {

        bottom: 0;

        transform: translate(-50%, 3rem);

        width: 0.1875rem;

        height: 0.1875rem;

        border-radius: 100%;

        background: #ffce54;

        }

        body ul:nth-child(2) li:nth-child(4n):after {

        background: #D8334A;

        }

        body ul:nth-child(2) li:nth-child(4n+1):after {

        background: #FFCE54;

        }

        body ul:nth-child(2) li:nth-child(4n+2):after {

        background: #2ECC71;

        }

        body ul:nth-child(2) li:nth-child(4n+3):after {

        background: #5D9CEC;

        }

        @-webkit-keyframes fall {

        0% {

        opacity: 0;

        top: 0%;

        }

        5% {

        opacity: 0;

        }

        15%, 90% {

        opacity: 1;

        }

        100% {

        opacity: 0;

        top: 100%;

        }

        }

        @keyframes fall {

        0% {

        opacity: 0;

        top: 0%;

        }

        5% {

        opacity: 0;

        }

        15%, 90% {

        opacity: 1;

        }

        100% {

        opacity: 0;

        top: 100%;

        }

        }

        五、水晶球里的圣诞树


        演示地址:http://haiyong.site/christmastree5(响应式的,手机和PC端都可预览)

        在这里插入图片描述

        CSS完整代码

        html, body {

        margin:0;

        width: 100%;

        height: 100%;

        如果你也是看准了Python,想自学Python,在这里为大家准备了丰厚的免费学习大礼包,带大家一起学习,给大家剖析Python兼职、就业行情前景的这些事儿。

        一、Python所有方向的学习路线

        Python所有方向路线就是把Python常用的技术点做整理,形成各个领域的知识点汇总,它的用处就在于,你可以按照上面的知识点去找对应的学习资源,保证自己学得较为全面。

        二、学习软件

        工欲善其必先利其器。学习Python常用的开发软件都在这里了,给大家节省了很多时间。

        三、全套PDF电子书

        书籍的好处就在于权威和体系健全,刚开始学习的时候你可以只看视频或者听某个人讲课,但等你学完之后,你觉得你掌握了,这时候建议还是得去看一下书籍,看权威技术书籍也是每个程序员必经之路。

        四、入门学习视频

        我们在看视频学习的时候,不能光动眼动脑不动手,比较科学的学习方法是在理解之后运用它们,这时候练手项目就很适合了。

        四、实战案例

        光学理论是没用的,要学会跟着一起敲,要动手实操,才能将自己的所学运用到实际当中去,这时候可以搞点实战案例来学习。

        五、面试资料

        我们学习Python必然是为了找到高薪的工作,下面这些面试题是来自阿里、腾讯、字节等一线互联网大厂最新的面试资料,并且有阿里大佬给出了权威的解答,刷完这一套面试资料相信大家都能找到满意的工作。

        成为一个Python程序员专家或许需要花费数年时间,但是打下坚实的基础只要几周就可以,如果你按照我提供的学习路线以及资料有意识地去实践,你就有很大可能成功!
        最后祝你好运!!!

        网上学习资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。

        需要这份系统化的资料的朋友,可以添加V获取:vip1024c (备注python)
        img

        一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!
        于权威和体系健全,刚开始学习的时候你可以只看视频或者听某个人讲课,但等你学完之后,你觉得你掌握了,这时候建议还是得去看一下书籍,看权威技术书籍也是每个程序员必经之路。

        四、入门学习视频

        我们在看视频学习的时候,不能光动眼动脑不动手,比较科学的学习方法是在理解之后运用它们,这时候练手项目就很适合了。

        四、实战案例

        光学理论是没用的,要学会跟着一起敲,要动手实操,才能将自己的所学运用到实际当中去,这时候可以搞点实战案例来学习。

        五、面试资料

        我们学习Python必然是为了找到高薪的工作,下面这些面试题是来自阿里、腾讯、字节等一线互联网大厂最新的面试资料,并且有阿里大佬给出了权威的解答,刷完这一套面试资料相信大家都能找到满意的工作。

        成为一个Python程序员专家或许需要花费数年时间,但是打下坚实的基础只要几周就可以,如果你按照我提供的学习路线以及资料有意识地去实践,你就有很大可能成功!
        最后祝你好运!!!

        网上学习资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。

        需要这份系统化的资料的朋友,可以添加V获取:vip1024c (备注python)
        [外链图片转存中…(img-VhipzI12-1713437202311)]

        一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!

      • 22
        点赞
      • 19
        收藏
        觉得还不错? 一键收藏
      • 0
        评论
      源码是经过本地编译可运行的,下载完成之后配置相应环境即可使用。源码功能都是经过老师肯定的,都能满足要求,有需要放心下载即可。源码是经过本地编译可运行的,下载完成之后配置相应环境即可使用。源码功能都是经过老师肯定的,都能满足要求,有需要放心下载即可。源码是经过本地编译可运行的,下载完成之后配置相应环境即可使用。源码功能都是经过老师肯定的,都能满足要求,有需要放心下载即可。源码是经过本地编译可运行的,下载完成之后配置相应环境即可使用。源码功能都是经过老师肯定的,都能满足要求,有需要放心下载即可。源码是经过本地编译可运行的,下载完成之后配置相应环境即可使用。源码功能都是经过老师肯定的,都能满足要求,有需要放心下载即可。源码是经过本地编译可运行的,下载完成之后配置相应环境即可使用。源码功能都是经过老师肯定的,都能满足要求,有需要放心下载即可。源码是经过本地编译可运行的,下载完成之后配置相应环境即可使用。源码功能都是经过老师肯定的,都能满足要求,有需要放心下载即可。源码是经过本地编译可运行的,下载完成之后配置相应环境即可使用。源码功能都是经过老师肯定的,都能满足要求,有需要放心下载即可。源码是经
      评论
      添加红包

      请填写红包祝福语或标题

      红包个数最小为10个

      红包金额最低5元

      当前余额3.43前往充值 >
      需支付:10.00
      成就一亿技术人!
      领取后你会自动成为博主和红包主的粉丝 规则
      hope_wisdom
      发出的红包
      实付
      使用余额支付
      点击重新获取
      扫码支付
      钱包余额 0

      抵扣说明:

      1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
      2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

      余额充值