Python
文章平均质量分 80
Skyler1996
www.dearecho.me
展开
-
Python数据结构练习
1. 已知字符串 a = “aAsmr3idd4bgs7Dlsf9eAF”,要求如下1.1 请将a字符串的大写改为小写,小写改为大写。a.swapcase()1.2 请将a字符串的数字取出,并输出成一个新的字符串。''join([x for x in a if x.isdigit()]) #''join以指定的分隔符生成新的字符串1.3 请统计a字符串出现的每个字母的出现次数(忽略大小写,a与A是同原创 2017-08-03 16:57:55 · 3673 阅读 · 0 评论 -
Python面试题
title: Python面试题 tags: - interviewcagetories:python1.解释类方法、静态方法 @classmethod means: when this method is called, we pass the class as the first argument instead of the instance of that class (原创 2017-08-03 16:59:07 · 1359 阅读 · 0 评论 -
Python Socket 编程
Python Socket 编程Socket 基本概念Socket 是对 TCP/IP 协议族的一种封装,是应用层与TCP/IP协议族通信的中间软件抽象层。从设计模式的角度看来,Socket其实就是一个门面模式,它把复杂的TCP/IP协议族隐藏在Socket接口后面,对用户来说,一组简单的接口就是全部,让Socket去组织数据,以符合指定的协议。Socket 还可以认为是一种网络间不同计算机上的进程原创 2017-09-30 19:38:54 · 305 阅读 · 0 评论