1.使用gcc时,需要使用gcc -g选项 2.如果想要把生成的可执行文件的调试信息去掉,可以使用strip命令. 3.调试程序时,最好把编译器的优化给关掉 gdb调试程序的三种方式: 1.gdb filename 2.gdb attach pid # 分离可以用detach 3.gdb filen ...
分类:
数据库 时间:
2020-04-27 22:44:20
阅读次数:
70
/1 前言/ 细心的小伙伴应该知道上次小编发布了一篇关于IP代理的文章,基于Python网络爬虫技术,主要介绍了去IP代理网站上抓取可用IP,并且Python脚本实现验证IP地址的时效性,如遇到爬虫被禁的情况就可以用文章中的办法进行解决。如果没有来得及上车的小伙伴,可以戳这篇文章看看:手把手教你用免 ...
分类:
编程语言 时间:
2020-04-27 09:59:32
阅读次数:
89
##!='' 直接用变量就是True# ='' 直接用not变量就是True一、='' 为空是false# 为空如下 user_info={'xiaohei': '123456', 'xiaobai': '11111', 'xiaoming': '1'}count =0while count<3: ...
分类:
其他好文 时间:
2020-04-26 16:39:46
阅读次数:
76
//坐标系 EPSG码 //xian 1980 3 Degree GK CM 123 2386 //xian 1980 3 Degree GK CM 126 2387 //xian 1980 3 Degree GK CM 129 2388 //xian 1980 3 Degree GK CM 132 ...
分类:
数据库 时间:
2020-04-26 10:43:17
阅读次数:
102
还没找到工作的Android开发者们,赶紧趁这个机会准备起来!
分类:
移动开发 时间:
2020-04-25 10:39:45
阅读次数:
78
1:strip()方法,去除字符串开头或者结尾的空格 >>> a = " a b c " >>> a.strip() 'a b c' 2:lstrip()方法,去除字符串开头的空格 >>> a = " a b c " >>> a.lstrip() 'a b c ' 3:rstrip()方法,去除字符 ...
分类:
编程语言 时间:
2020-04-23 00:34:54
阅读次数:
93
结构 starts.py # Author:Winter Liu is coming! # 启动文件 import os import sys import json BASE_PATH = os.path.dirname(os.path.dirname(__file__)) sys.path.ap ...
分类:
其他好文 时间:
2020-04-22 16:46:21
阅读次数:
80
def clean(string): pattern = re.compile(r'<[^>]+>', re.S) string = pattern.sub('', string) string = string.replace('\n', ' ').replace('\r', ' ').repla ...
分类:
编程语言 时间:
2020-04-21 13:23:48
阅读次数:
79
服务端 import socketserver=socket.socket(socket.AF_INET,socket.SOCK_DGRAM) # 数据报协议=》udp协议server.bind(('127.0.0.1',8081))while True: data,client_addr=serv ...
分类:
其他好文 时间:
2020-04-20 22:04:16
阅读次数:
92
filez Easy use for fetch data from kinds of files Feature Support load txt,csv,excel,conf/ini,json,yaml file to list or dict Strip lines for txt Ensur ...
分类:
其他好文 时间:
2020-04-20 15:45:55
阅读次数:
81