上一页 1 ··· 193 194 195 196 197 198 199 200 201 ··· 494 下一页
摘要: The same as Javascript: // Javascript function sayHello(name) { return `Hello ${name}` } //python def say_hello(name): return f"Hello {name}" 阅读全文
posted @ 2020-05-30 19:23 Zhentiw 阅读(121) 评论(0) 推荐(0)
摘要: class Clothing: def __init__(self, color, size, style, price): self.color = color self.size = size self.style = style self.price = price def change_pr 阅读全文
posted @ 2020-05-30 00:53 Zhentiw 阅读(171) 评论(0) 推荐(0)
摘要: Mirage JS lets you mock out production APIs directly alongside your frontend React code. You can tweak the data or force a network request to hang, so 阅读全文
posted @ 2020-05-28 14:55 Zhentiw 阅读(248) 评论(0) 推荐(0)
摘要: Let's say we have following semigroups: // Total: Sum up all the number const Total = (x) => ({ x, concat(o) { return Total(o.x + x); }, fold() { retu 阅读全文
posted @ 2020-05-28 14:42 Zhentiw 阅读(158) 评论(0) 推荐(0)
摘要: It can be difficult to work on multiple projects that use different versions of Node. nvm (Node Version Manger) make this easier by allowing you to do 阅读全文
posted @ 2020-05-28 01:57 Zhentiw 阅读(168) 评论(0) 推荐(0)
摘要: Thinking how to add tow Guessin object together? It is similar idea to Functional programming, Data type. import math import matplotlib.pyplot as plt 阅读全文
posted @ 2020-05-28 01:48 Zhentiw 阅读(298) 评论(0) 推荐(0)
摘要: import math import matplotlib.pyplot as plt class Gaussian(): """ Gaussian distribution class for calculating and visualizing a Gaussian distribution. 阅读全文
posted @ 2020-05-28 01:40 Zhentiw 阅读(376) 评论(0) 推荐(0)
摘要: For example, we have current html code: <main class="grid-wrap"> <div class="grid"> <span>One column default</span> </div> <div class="grid"> <span>Ha 阅读全文
posted @ 2020-05-25 14:32 Zhentiw 阅读(305) 评论(0) 推荐(0)
摘要: Now that we know what we are looking for, let's go over some tips on how to actually write your code review. When your coworker finishes up some code 阅读全文
posted @ 2020-05-25 00:27 Zhentiw 阅读(224) 评论(0) 推荐(0)
摘要: Is the code clean and modular? Can I understand the code easily? Does it use meaningful names and whitespace? Is there duplicated code? Can you provid 阅读全文
posted @ 2020-05-25 00:23 Zhentiw 阅读(167) 评论(0) 推荐(0)
上一页 1 ··· 193 194 195 196 197 198 199 200 201 ··· 494 下一页