随笔分类 -  计算机编程

摘要:Solution: def reverse_seq(n): lst = [] for i in range(n, 0, -1): lst.append(i) return lst #这里用 print(lst)输出显示一样,但是结果和答案不同:print和return 的值不同 reverse_se 阅读全文
posted @ 2022-06-24 18:05 大序列 阅读(25) 评论(0) 推荐(0) 编辑
摘要:def make_negative( number ): if number > 0: return number * -1 else: return number make_negative(1) make_negative(-5) make_negative(0) 阅读全文
posted @ 2022-06-24 15:12 大序列 阅读(6) 评论(0) 推荐(0) 编辑
摘要:Sample tests import codewars_test as test from solution import find_average @test.describe("Fixed Tests") def fixed_tests(): @test.it('Basic Test Case 阅读全文
posted @ 2022-06-24 13:51 大序列 阅读(77) 评论(0) 推荐(0) 编辑
摘要:>>: Given a set of numbers, return the additive inverse of each. Each positive becomes negatives, and the negatives become positives. invert([1,2,3,4, 阅读全文
posted @ 2022-06-23 21:22 大序列 阅读(245) 评论(0) 推荐(0) 编辑
摘要:Errors>>:把 类(Hardway())放在字典里的value位置 出错 >> my_aim_keys = {'learn python the hard way' : HardWay_python,' start' : Start } >> 弹出 NameError: name 'HardW 阅读全文
posted @ 2022-03-30 19:08 大序列 阅读(306) 评论(0) 推荐(0) 编辑
摘要:Atom-preference-setting... >>inatall: >) atom-html-preview: 在编辑框中按 Ctrl + Shift + H 可以打开预览面板(带CSS样式) >) Dev Live Reload: 调用快捷键:CTRL+SHIFT+ALT+R >) bro 阅读全文
posted @ 2021-09-20 00:04 大序列 阅读(222) 评论(0) 推荐(0) 编辑
摘要:>>Web安全色 216 跨平台色 000000 000033 000066 000099 0000CC 0000FF 003300 003333 003366 003399 0033CC 0033FF 006600 006633 006666 006699 0066CC 0066FF 009900 阅读全文
posted @ 2021-08-22 21:42 大序列 阅读(55) 评论(0) 推荐(0) 编辑
摘要:>> 是为了兼容老版本的写法,比较新版本的浏览器都支持直接写:border-radius。 >> -moz:匹配Firefox浏览器-webkit:匹配Webkit枘核浏览器,如chrome and safari-moz代表firefox浏览器私有属性 -ms代表ie浏览器私有属性 -webkit代 阅读全文
posted @ 2021-08-15 21:42 大序列 阅读(219) 评论(0) 推荐(0) 编辑
摘要:Property 描述 示例 结果 font 在一个声明中设置所有的字体属性 p.ex1{font:15px arial,sans-serif;}p.ex2{font:italic bold 12px/30px Georgia,serif;} This is a paragraph. This is 阅读全文
posted @ 2021-08-15 14:55 大序列 阅读(69) 评论(0) 推荐(0) 编辑
摘要:重要的快捷键 ctrl+shift+A:万能命令行 shift两次:查看资源文件 新建工程第一步操作 module设置把空包分层去掉,compact empty middle package 设置当前的工程是utf-8,设置的Editor-->File Encodings-->全部改成utf-8, 阅读全文
posted @ 2021-08-15 12:47 大序列 阅读(95) 评论(0) 推荐(0) 编辑
摘要:>>:Mac机网站设计软件:10大最佳HTML编辑器 1. Adobe Dreamweaver Adobe Dreamweaver是个著名网站开发工具。它使用所见即所得的接口,亦有HTML编辑的功能。Dreamweaver能与设计工具,如Playback Flash,Shockwave和外挂模组等搭 阅读全文
posted @ 2021-08-08 12:27 大序列 阅读(846) 评论(0) 推荐(0) 编辑
摘要:>>:Source Code: <!DOCTYPE html><html><head><meta charset="UTF-8"><title>HeartBeat</title><style>body{ background-color:black;}.heartborder{ margin-top 阅读全文
posted @ 2021-08-05 22:03 大序列 阅读(55) 评论(0) 推荐(0) 编辑
摘要:吃豆豆网页小动画练习题 >>Html...... <!doctype html> <html> <head> <meta charset="UTF-8"> <meta name="和尚" content="Pac-man"> <title>Pack-mantitle> 通过link调用外部css样式 阅读全文
posted @ 2021-08-04 21:35 大序列 阅读(49) 评论(0) 推荐(0) 编辑
摘要:》〉Track黑客导航 》〉封神台靶场 》〉黑客社区 》〉BWAPP 》〉Damn Vulnerable IOS App(DVIA) 》〉Damn Vulnerable Web Application(DVWA) 》〉Game of Hacks 》〉Google Gruyre 》〉HackThis! 阅读全文
posted @ 2020-10-18 23:22 大序列 阅读(286) 评论(0) 推荐(0) 编辑
摘要:sum(iterable, start=0, /) Return the sum of a 'start' value (default: 0) plus an iterable of numbers When the iterable is empty, return the start valu 阅读全文
posted @ 2020-09-04 23:01 大序列 阅读(470) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示