摘要: JS之random随机数 Math.ceil(Math.random()*10); // 获取从 1 到 10 的随机整数,取 0 的概率极小。 Math.round(Math.random()); // 可均衡获取 0 到 1 的随机整数。 Math.floor(Math.random()*10) 阅读全文
posted @ 2020-10-28 17:40 颜颜blog 阅读(85) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-04-24 16:01 颜颜blog 阅读(0) 评论(0) 推荐(0) 编辑
摘要: Tab 添加主题 Delter 删除主题 Alt+Enter 添加标注 command+shift+. mac上显示.开头的文件 阅读全文
posted @ 2020-02-17 17:26 颜颜blog 阅读(369) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-02-15 18:08 颜颜blog 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-02-15 17:55 颜颜blog 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-02-15 16:55 颜颜blog 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-01-10 20:33 颜颜blog 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 单例模式,无论实例化多少次,实例化的都是首次实例化内容适用于只需要实例化一次的类,比如数据库连接 class Person: __instance = None def __init__(self): self.name = 'nana' def __new__(cls, *args, **kwar 阅读全文
posted @ 2020-01-09 15:56 颜颜blog 阅读(91) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-01-06 17:00 颜颜blog 阅读(2) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2019-12-31 13:43 颜颜blog 阅读(2) 评论(0) 推荐(0) 编辑