码迷,mamicode.com
首页 >  
搜索关键字:python objects all    ( 160304个结果)
linux 性能诊断工具命令集
#查看当前系统load uptime #查看系统状态和每个进程的系统资源使用状况 top #可视化显示CPU的使用状况 htop #查看每个CPU的负载信息 mpstat -P ALL 1 #每隔1秒查看磁盘IO的统计信息 iostat -xkdz 1 #每隔一秒查看虚拟内存的使用信息 vmstat 1 #查看内存使用统计信息 free #查看网络使用信息 nicstat -z 1 ...
分类:系统相关   时间:2014-06-29 07:23:22    阅读次数:461
Python 实现的下载op海贼王网的图片(网络爬虫)
没得事就爬一下我喜欢的海贼王上的图片 需要在d盘下建立一个imgcache文件夹 # -*- coding: utf-8 -*- import urllib import urllib2 import json from bs4 import BeautifulSoup import threadpool import thread class htmlpaser: de...
分类:编程语言   时间:2014-06-29 07:15:05    阅读次数:304
Swift学习——A Swift Tour 对象和类
Objects and Classes  对象和类 使用关键字 class 定义一个类,在定义类的属性的时候与常量或者变量的定义相同(继承父类的属性定义不同),方法和函数的定义也相同 class Shape { var numberOfSides = 0 func simpleDescription() -> String { return "A sha...
分类:其他好文   时间:2014-06-20 12:38:10    阅读次数:293
Python读写文本文档详解
以下3步问正确的程序片段: 1.写文件 #! /usr/bin/python3 'makeTextFile.py -- create text file' import os def write_file():     "used to write a text file."          ls = os.linesep     #get filena...
分类:编程语言   时间:2014-06-20 10:47:27    阅读次数:278
hdu 4770 Lights Against Dudely
Problem Description Harry: "But Hagrid. How am I going to pay for all of this? I haven't any money."  Hagrid: "Well there's your money, Harry! Gringotts, the wizard bank! Ain't no safer place. Not...
分类:其他好文   时间:2014-06-20 10:25:17    阅读次数:228
Apple Swift
Swift 是一种兼顾了编译语言的效率和脚本语言的简洁的一种语言。 让我惊讶的是居然支持汉字作为变量的名称,而且还有模板的支持。 其他总的来讲它本身不具有特别与别人不同的东西,很多东西在其他的语言上已经都有了比较成熟的体现,比如JS中的var, python的dict, list, go的多返回值,看起来像是一个大杂烩,很像当年iphone刚刚面世的时候的场景,它所具有的功能,其他的手机基本上...
分类:移动开发   时间:2014-06-20 09:15:07    阅读次数:331
使用批处理命令设置windows系统的ip地址和dns
找到对应的网卡名称 使用命令:ipconfig ipconfig/all Windows IP Configuration Host Name . . . . . . . . . . . . : D501-4-3 Primary Dns Suffix . . . . . . . : Node Type . . . . . . . . . ....
分类:Windows程序   时间:2014-06-20 09:12:20    阅读次数:443
1.菜鸟的linux学习之路------linux初体验
脚本编程语言通常是解释型的。这类程序的执行,是由解释器读入代码,并将其转换成内部的形式,在执行。请注意,解释器本身是一般的编译型程序。 常用的脚本编程语言有 :awk,Perl,Python,Ruby,Shell。这里的Ruby是日本人研发的。 注释: linux : 1.rm 删除指定的文件 例:rm /Users/apple/Desktop/QQDock.plist...
分类:系统相关   时间:2014-06-20 09:10:29    阅读次数:371
Path Sum
题目 Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. For example: Given the below binary t...
分类:其他好文   时间:2014-06-07 15:31:32    阅读次数:179
[Python]使用MYSQL
学习Python使用MYSQLdb操作MYSQL数据库...
分类:数据库   时间:2014-06-07 14:44:13    阅读次数:256
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!