- 博客(21)
- 收藏
- 关注
原创 WIN10 Localhost 无法打开 怎么解决
Localhost 无法打开 怎么解决❤ 了解 127.0.0.1和 localhost 的区别:127.0.0.1 是一个 IP地址,localhost 是一个域名,一般指向127.0.0.1,所以通常会把它们等同起来。但在 ipv6 后,localhost 同时还指向ipv6 的地址 [::1],ipv6的优先级高,所以我们ping的时候,会默认指向[::1]。[::1]是0:0:...
2019-10-01 21:09:21
9625
11
原创 Git Bash中的复制与粘贴
Git Bash中的复制与粘贴 Ctrl+ins 复制 (ins 键盘右上角的Insert) Shift+ins 粘贴 (shift 键盘上最左下角CTRL键的上面一个上档转换键,也可用于中英文转换)...
2019-06-21 19:18:01
2845
原创 FLASK -WEB 开发 学习解惑 笔记
FLASK -WEB 开发 学习解惑 笔记学习用书:【Flask Web Development: Developing Web Applications with Python】 - Miguel Grinberg【Flask Web 开发 基于Pthon 的Web应用开发实践】 - 安道译Flask 简介1.1 安装 - 使用虚拟环境 Page 5$ venv\Scripts\...
2019-06-19 01:32:55
480
原创 win10左下角搜索框无法搜索无反应的解决方案
某天打开电脑输入cmd突然没有任何反应和应用跳出来,故而网上搜索了一下原因和解决方案。原因未果,解决方案倒是找到了。打开管理员命令窗口,(快捷键 win+x),可以看到弹出一个窗口,打开windows Powershell(管理员).在跳出来的框中输入下面这行英文,然后回车start powershell3. 再输入这行代码.Get-AppXPackage -Name Mic...
2019-04-16 02:52:35
26240
4
原创 Python exercise 16 - Password Generator
Python exercise 16 - Password GeneratorWrite a password generator in Python. Be creative with how you generate passwords - strong passwords have a mix of lowercase letters, uppercase letters, numbers...
2019-04-12 17:28:27
379
原创 Python exercise 15 - Reverse Word Order
Python exercise 15 - Reverse Word OrderExercise 15 (and Solution)Write a program (using functions!) that asks the user for a long string containing multiple words. Print back to the user the same st...
2019-04-12 17:24:51
297
原创 Python exercise 14 - List Ends
Python exercise 14 - List EndsWrite a program (function!) that takes a list and returns a new list that contains all the elements of the first list minus all the duplicates.Extras:Write two diffe...
2019-04-12 17:18:16
252
原创 Python exercise 13 - Fibonacci
Python exercise 13 - FibonacciWrite a program that asks the user how many Fibonnaci numbers to generate and then generates them. Take this opportunity to think about how you can use functions. Make s...
2019-04-12 17:13:51
265
原创 Python exercise 7 - List comprehension
Python exercise 7 - List comprehensionLet’s say I give you a list saved in a variable: a = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]. Write one line of Python that takes this list a and makes a new list...
2019-04-12 17:02:57
222
原创 Python exercise 6 - string & list
Python exercise 6 - string & listAsk the user for a string and print out whether this string is a palindrome or not. (A palindrome is a string that reads the same forwards and backwards.)Code 1...
2019-04-12 17:01:17
219
原创 Python exercise 5 - List Overlap
Python exercise 5 - List Overlap Take two lists, say for example these two: a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89] b = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13] and write a program that retu...
2019-04-12 16:57:57
438
原创 Python exercise 4 - divisors
Python exercise 4 - divisors Create a program that asks the user for a number and then prints out a list of all the divisors of that number. (If you don’t know what a divisor is, it is a numb...
2019-04-12 16:52:47
367
原创 Python exercise 3 -list & lambda
Python exercise 3 -list & lambda Take a list, say for example this one: a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89] and write a program that prints out all the elements of the list tha...
2019-04-12 16:49:30
224
原创 Python exercise 12 - List Ends
Python exercise 12 - List Ends'''Write a program that takes a list of numbers (for example, a = [5, 10, 15, 20, 25]) and makes a new list of only the first and last elements of the given list. For p...
2019-02-22 02:37:28
251
原创 Python exercise 11 - Check Primality Functions
Python exercise 11 - Check Primality Functions'''Ask the user for a number and determine whether the number is prime or not. (For those who have forgotten, a prime number is a number that has no div...
2019-02-21 00:35:40
212
原创 Python exercise 10 - List Overlap Comprehensions
Python exercise 10 - List Overlap Comprehensions'''This week’s exercise is going to be revisiting an old exercise (see Exercise 5), except require the solution in a different way.Take two lists, sa...
2019-02-20 00:52:37
223
原创 Python exercise 2 - Odd or Even
Python exercise 2 - Odd or Even''' Exercise 2 - Odd or Even Take a list, say for example this one: a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89] and write a program that prints out all the elements ...
2019-02-18 02:48:29
464
原创 PYTHON Exercise 1 Input & Print
Exercise 1 - Input & Print'''Exercise:Create a program that asks the user to enter their name and their age.Print out a message addressed to them that tells them the year that they will turn 1...
2019-02-18 02:48:15
222
原创 Python exercise 9 - Guessing Game
Exercise 9 - Guessing Game'''Generate a random number between 1 and 9 (including 1 and 9). Ask the user to guess the number, then tell them whether they guessed too low, too high, or exactly right. ...
2019-02-18 02:47:54
405
原创 Python exercise 8 - Rock Paper Scissors
Exercise 8 - Rock Paper Scissors'''Make a two-player Rock-Paper-Scissors game. (Hint: Ask for player plays (using input), compare them, print out a message of congratulations to the winner, and ask ...
2019-02-17 00:56:47
335
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人