- 博客(10)
- 收藏
- 关注
原创 查看服务器的监听端口(Windows、Linux、MacOS)
查看服务器的监听端口(Windows、Linux、MacOS),netstat、losf、TCPView
2023-05-14 00:20:42
18112
原创 查看服务器端口监听情况
经常,我们在启动应用的时候发现系统需要的端口被别的程序占用,如何知道谁占有了我们需要的端口,很多人都比较头疼,下面就介绍一种非常简单的方法,希望对大家有用
2022-07-06 21:22:50
7201
原创 linux Ubuntu python3 pygame
1.安装库:sudo apt-get install python3-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev libsmpeg-dev python-numpy libportmidi-dev ffmpeg libswscale-dev libavformat-dev libavco
2017-10-28 14:37:16
306
原创 leet code 008:atoi 字符串转整型数
def atoi_int(n): import string l=len(n) stint='' for i in range(l): if n[i].isdigit(): stint+=n[i] print(stint,type(stint)) stint=int(stint) print(stint
2017-09-19 14:42:47
360
原创 leet code 006:ZigZag Conversion
题目描述:The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)P A H NA P L
2017-09-19 10:46:49
385
原创 leet code 004:Median of Two Sorted Arrays
通用法:查找两个数组中的第K大值def find_kMax(array01,array02,k): km1=max(array01) km2=max(array02) for i in range(1,k): while km1 in array01: array01.remove(km1) while k
2017-09-18 13:51:53
391
原创 leet code 003:Longest Substring Without Repeating Characters
题目描述:Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is
2017-09-18 13:46:34
503
原创 leet code 002:Add Two Numbers ???未完成
题目描述:You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as
2017-09-18 13:44:21
391
原创 LeetCode 001 :Two Sum
题目描述:Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly one solution.Example:Given
2017-09-18 13:29:24
505
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人