Skip to content
  • About Me

charlie笔记

A programmer’s note boke for work and life

python中“与,或,异或”与c语言的不同

20 6月01 1月 by test31297505

在python中: 按位的运算,都按位的运算,都是把参加运算的数的二进制形式进行运算。 1.与运算:a与b值均 […]

Continue reading
Posted in 未分类 · Leave a comment

python包(模块)

20 6月01 1月 by test31297505

python包管理不同方式的区别 学习python已经有一段时间,经常会遇到安装各种包的问题,一会 setup […]

Continue reading
Posted in 未分类 · Leave a comment

python和lua的默认作用域以及闭包

20 6月01 1月 by test31297505

默认作用域 前段时间学了下lua,发现lua的默认作用域和python是相反的。lua定义变量时默认变量的作用 […]

Continue reading
Posted in 未分类 · Leave a comment

如何在vim中使用tab进行python代码补全

20 6月01 1月 by test31297505

pydiction 允许你在 vim 中实现 tab 代码补全, 可以补全的内容包括:标准的、自定义的,以及第 […]

Continue reading
Posted in 未分类 · Leave a comment

python如何忽略警告(warning)错误

20 6月01 1月 by test31297505

运行一个python文件,一直报warning的错误,很是郁闷,于是想到可以忽略这些错误。 下面来说一下如何忽 […]

Continue reading
Posted in 未分类 · Leave a comment

pythoncollections.defaultdict()与dict的使用和区别

20 6月01 1月 by test31297505

在python里面有一个模块collections,解释是数据类型容器模块。这里面有一个collections […]

Continue reading
Posted in 未分类 · Leave a comment

python中对象拷贝

20 6月01 1月 by test31297505

你想复制一个对象?因为在python中,无论你把对象做为参数传递,做为函数返回值,都是引用传递的。 何谓引用传 […]

Continue reading
Posted in 未分类 · Leave a comment

macos中的python(和numpy)开发环境设置

20 6月01 1月 by test31297505

一、安装 python 2.7 和 numpy 1.7 1)从http://www.python.org下载p […]

Continue reading
Posted in 未分类 · Leave a comment

python获取系统时间(时间函数详解)

20 6月01 1月 by test31297505

import time print time.time() 输出的结果是: 1279578704.672527 […]

Continue reading
Posted in 未分类 · Leave a comment

python中求和函数sum

20 6月01 1月 by test31297505

sum是python中一个很实用的函数,但是要注意它的使用,我第一次用的时候,就把它这样用了: s = sum […]

Continue reading
Posted in 未分类 · Leave a comment

python拆分中英文混合字符串

20 6月01 1月 by test31297505

#coding=utf-8 import re s = ‘hi新手oh’.decode […]

Continue reading
Posted in 未分类 · Leave a comment

python函数之参数传递

20 6月01 1月 by test31297505

在这个用例中,我们要讨论的是关于函数的传参问题 我所使用的python版本为3.3.2 对于函数: 1 2 3 […]

Continue reading
Posted in 未分类 · Leave a comment

python数据类型判断type与isinstance的区别

20 6月01 1月 by test31297505

在项目中,我们会在每个接口验证客户端传过来的参数类型,如果验证不通过,返回给客户端“参数错误”错误码。 这样做 […]

Continue reading
Posted in 未分类 · Leave a comment

python算法

20 6月01 1月 by test31297505

”’ created on 2013-8-23 @author: codegeek & […]

Continue reading
Posted in 未分类 · Leave a comment

python中数据格式化的pprint和pformat

20 6月01 1月 by test31297505

很多时候我们需要对数据进行格式化,你有没有对python中的数据格式化感到头疼呢?pprint会帮你很大的忙 […]

Continue reading
Posted in 未分类 · Leave a comment

python操作mysql数据库

20 6月01 1月 by test31297505

python操作mysql数据库的相关操作实例 # -*- coding: utf-8 -*- #python […]

Continue reading
Posted in 未分类 · Leave a comment

打印当前python文件错误行

20 6月01 1月 by test31297505

在python错误调试过程中有时需要打印当前python文件错误行,下面来介绍一下方法: import sys […]

Continue reading
Posted in 未分类 · Leave a comment

python对象类型判断与函数重载

20 6月01 1月 by test31297505

1. 判断对象类型 通过type函数可以知道对象的类型,示例代码如下: x = ‘hello&#8 […]

Continue reading
Posted in 未分类 · Leave a comment

python教程python日期函数实例

20 6月01 1月 by test31297505

在python中对日期进行操作的库有:datetime、time 无论在哪种语言,日期函数肯定是最常用的函数。 […]

Continue reading
Posted in 未分类 · Leave a comment

查看python的可用模块

20 6月01 1月 by test31297505

1.这种方式的问题是,只列出当前import进上下文的模块. 进入python命令行.输入以下代码: $ py […]

Continue reading
Posted in 未分类 · Leave a comment

python开发

20 6月01 1月 by test31297505

总结我们在平常开发过程中对字符串的一些操作: #字母大小写转换 #首字母转大写 #去除字符串中特殊字符(如:& […]

Continue reading
Posted in 未分类 · Leave a comment

python同时给多个变量赋值

20 6月01 1月 by test31297505

同时赋多个值 以下是一种很酷的编程捷径:在 python 中,可使用元组来一次 赋多值。 >>> v = (& […]

Continue reading
Posted in 未分类 · Leave a comment

python开发的range()函数

20 6月01 1月 by test31297505

python中的range()函数的功能hen强大,所以我觉得很有必要和大家分享一下 就好像其api中所描述的 […]

Continue reading
Posted in 未分类 · Leave a comment

python线程池进一步认识

20 6月01 1月 by test31297505

线程池的概念是什么? 在面向对象编程中,创建和销毁对象是很费时间的,因为创建一个对象要获取内存资源或者其它更多 […]

Continue reading
Posted in 未分类 · Leave a comment

pythonlogging模块研究

20 6月01 1月 by test31297505

背景 在一个新的项目里面加入了日志功能,想自己写一个,但是一个偶然的机会,通过google发现python内建 […]

Continue reading
Posted in 未分类 · Leave a comment

你所不知道的python循环中的else

20 6月01 1月 by test31297505

众多语言中都有if else这对条件选择组合,但是在python中还有更多else使用的地方,比如说循环for […]

Continue reading
Posted in 未分类 · Leave a comment

python中的class

20 6月01 1月 by test31297505

尽管python在function programming中有着其他语言难以企及的的优势,但是我们也不要忘了p […]

Continue reading
Posted in 未分类 · Leave a comment

python全局变量与局部变量详解

20 6月01 1月 by test31297505

python全局变量与局部变量详解 #python中的变量:全局变量和局部变量 #在很多语言中,在声明全局变量 […]

Continue reading
Posted in 未分类 · Leave a comment

python

20 6月01 1月 by test31297505

最近在备份手机上的照片的时候,纯手工操作觉得有些麻烦,就想写个脚本自动进行。因为备份的时候有些照片以前备份过了 […]

Continue reading
Posted in 未分类 · Leave a comment

python的类实例属性访问规则

20 6月01 1月 by test31297505

一般来说,在python中,类实例属性的访问规则算是比较直观的。 但是,仍然存在一些不是很直观的地方,特别是对 […]

Continue reading
Posted in 未分类 · Leave a comment

文章导航

Previous 1 … 142 143 144 145 146 147 148 149 150 151 152 … 260 Next

近期文章

  • 15款互联网人必备的AI工具,效率提升2倍
  • 多个ChatGPT通用指令
  • Python采集biaozhun政府文件
  • TensorFlow库:Python中的深度学习
  • python 本地密码管理应用

近期评论

  • helenadmin发表在《Python采集biaozhun政府文件》
  • helenadmin发表在《写给程序员的一封公开信》
  • Google发表在《About Me》
  • helenadmin发表在《ES(ElasticSearch)分布式全文搜索引擎及使用方式》
  • buy viagra发表在《About Me》

文章归档

  • 2024年12月
  • 2024年9月
  • 2024年6月
  • 2024年5月
  • 2024年3月
  • 2024年2月
  • 2024年1月
  • 2023年12月
  • 2023年11月
  • 2023年10月
  • 2023年9月
  • 2023年8月
  • 2023年7月
  • 2023年6月
  • 2023年5月
  • 2023年4月
  • 2023年3月
  • 2023年2月
  • 2023年1月
  • 2022年12月
  • 2022年8月
  • 2022年7月
  • 2022年6月
  • 2022年5月
  • 2022年4月
  • 2022年3月
  • 2022年2月
  • 2022年1月
  • 2021年12月
  • 2021年11月
  • 2021年10月
  • 2021年9月
  • 2021年8月
  • 2021年7月
  • 2021年6月
  • 2021年5月
  • 2021年4月
  • 2021年3月
  • 2021年1月
  • 2020年12月
  • 2020年11月
  • 2020年10月
  • 2020年9月
  • 2020年8月
  • 2020年7月
  • 2020年6月
  • 2020年5月
  • 2020年4月
  • 2020年3月
  • 2020年2月
  • 2020年1月
  • 2019年12月
  • 2019年11月
  • 2019年10月
  • 2019年9月
  • 2019年8月
  • 2019年7月
  • 2019年6月
  • 2019年5月
  • 2019年4月
  • 2019年3月
  • 2019年2月
  • 2019年1月
  • 2018年12月
  • 2018年11月
  • 2018年10月
  • 2018年9月
  • 2018年7月
  • 2018年6月
  • 2018年3月
  • 2018年2月
  • 2018年1月
  • 2017年12月
  • 2017年11月
  • 2017年10月
  • 2017年9月
  • 2017年8月
  • 2017年7月
  • 2017年6月
  • 2017年5月
  • 2017年4月
  • 2017年3月
  • 2017年1月
  • 2016年12月
  • 2016年11月
  • 2016年10月
  • 2016年9月
  • 2016年8月
  • 2016年7月
  • 2016年6月
  • 2016年5月
  • 2016年4月
  • 2016年3月
  • 2016年2月
  • 2015年8月
  • 2015年7月
  • 2015年6月
  • 2015年5月
  • 2014年7月
  • 2014年6月
  • 2014年5月
  • 1970年1月

分类目录

  • Database
  • focus—-实时热搜
  • IC设计
  • js&jquery
  • PHP
  • Python
  • 新技术研习
  • 服务器相关技术
  • 算法
  • 缓存技术
  • 随笔

功能

  • 注册
  • 登录
  • 文章RSS
  • 评论RSS
  • WordPress.org
© 2025 charlie笔记 ·
程序猿 散文朗诵 鬼故事 佛学网