上一页 1 ··· 327 328 329 330 331 332 333 334 335 ··· 477 下一页
摘要: In this lesson we'll take a stopwatch component we built in another lesson and identify and fix a memory leak. Tow things to notice here is that: 1. t 阅读全文
posted @ 2017-12-07 20:33 Zhentiw 阅读(742) 评论(0) 推荐(0)
摘要: In this lesson we'll learn about how you can use the prop-types module to validate a custom React component's props. You can write you own PropTypes v 阅读全文
posted @ 2017-12-07 20:09 Zhentiw 阅读(268) 评论(0) 推荐(0)
摘要: import time import urllib import bs4 import requests start_url = "https://en.wikipedia.org/wiki/Special:Random" target_url = "https://en.wikipedia.org/wiki/Philosophy" def find_first_link(url): ... 阅读全文
posted @ 2017-12-07 16:36 Zhentiw 阅读(385) 评论(0) 推荐(0)
摘要: # Python's list slice syntax can be used without indices # for a few fun and useful things: # You can clear all elements from a list: >>> lst = [1, 2, 3, 4, 5] >>> del lst[:] >>> lst [] # You can r... 阅读全文
posted @ 2017-12-07 15:39 Zhentiw 阅读(271) 评论(0) 推荐(0)
摘要: https://docs.python.org/2/library/collections.html 阅读全文
posted @ 2017-12-07 15:20 Zhentiw 阅读(238) 评论(0) 推荐(0)
摘要: >>> import itertools >>> for p in itertools.permutations('ABCD'): ... print(p) ('A', 'B', 'C', 'D') ('A', 'B', 'D', 'C') ('A', 'C', 'B', 'D') ('A', 'C', 'D 阅读全文
posted @ 2017-12-07 15:10 Zhentiw 阅读(230) 评论(0) 推荐(0)
摘要: In this lesson you will create a utility function that allows you to quickly compose behavior of multiple functions to create new behavior. By the end 阅读全文
posted @ 2017-11-30 17:50 Zhentiw 阅读(306) 评论(0) 推荐(0)
摘要: The Object.entries() function is an addition to the ECMAscript scpec in Es2017. This allows us to iterate through the properties of an object and read 阅读全文
posted @ 2017-11-29 22:12 Zhentiw 阅读(186) 评论(0) 推荐(0)
摘要: The Python Standard Library has a lot of modules! To help you get familiar with what's available, here are a selection of our favourite Python Standar 阅读全文
posted @ 2017-11-28 15:50 Zhentiw 阅读(815) 评论(0) 推荐(0)
摘要: Python allows you to open a file, do operations on it, and automatically close it afterwards using with. In the example above we open a file, perform 阅读全文
posted @ 2017-11-28 15:35 Zhentiw 阅读(262) 评论(0) 推荐(0)
上一页 1 ··· 327 328 329 330 331 332 333 334 335 ··· 477 下一页