1. 显示python没有在注册表中定义## script to register Python
2.0 or later for use with win32all# and other extensions that require Python
registry settings## writ...
分类:
编程语言 时间:
2014-05-20 01:22:12
阅读次数:
392
题目描述After the hard tasks, It’s the easy time for
Y.G.Tobor and Y.D.I.Isha is a friend of Y.D.I, as he thinks Tobor is smart too,
he give Tobor a probl...
分类:
其他好文 时间:
2014-05-17 15:20:34
阅读次数:
248
转自:http://phinecos.cnblogs.com/ 1
#!/usr/bin/python 2 #coding=utf-8 3 4 #@author:dengyike 5 #@date:2010-09-28 6
#@version:1.0 7 #@description:...
分类:
编程语言 时间:
2014-05-17 15:06:38
阅读次数:
405
#!/usr/bin/envpython
#-*-coding:UTF-8-*-
"""
@Item:IOCtl
@Author:VilliamSheng
@Group:PythonDEVGroup
@Date:2013-05-29
@Funtion:
CPUcontrol:
TocontrolforCPU
"""
importos,sys,time,libvirt,traceback,commands
‘‘‘
Func:Recorderrormessage
path:Messagesavepath
form..
分类:
其他好文 时间:
2014-05-16 02:46:57
阅读次数:
504
一、简介py2exe是一个将python脚本转换成windows上的可独立执行的可执行程序(*.exe)的工具,这样,你就可以不用装python而在windows系统上运行这个可执行程序。py2exe已经被用于创建wxPython,Tkinter,Pmw,PyGTK,pygame,win32comclient和server,和其它的独立程序。py2exe是发布..
分类:
编程语言 时间:
2014-05-16 02:38:07
阅读次数:
261
昨天做了python客户端和服务器端通信,并把接收到的信息写到数据库,因为对数据库进行操作是个经常调用的行为,所以我想把调用数据库的操作写成一个module来给其它python程序调用,所以将昨天的服务器端程序拆分为两个文件:1、主程序python.py#!/usr/bin/envpython
importsock..
分类:
编程语言 时间:
2014-05-16 02:31:18
阅读次数:
386
Yukari's Birthday
Time Limit: 12000/6000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 2549 Accepted Submission(s): 522
Problem Description
Today is...
分类:
其他好文 时间:
2014-05-16 01:51:29
阅读次数:
284
'''
程序31】
题目:请输入星期几的第一个字母来判断一下是星期几,如果第一个字母一样,则继续
判断第二个字母。
1.程序分析:用情况语句比较好,如果第一个字母一样,则判断用情况语句或if语句判断第二个字母。
2.程序源代码:
'''
from sys import stdin
letter = stdin.read(1)
stdin.flush()
while letter != 'Y...
分类:
编程语言 时间:
2014-05-16 01:47:37
阅读次数:
272
题目1:Best Time to Buy and Sell Stock
Say you have an array for which the ith element is the price of a given stock on day i.
If you were only permitted to complete at most one transaction (ie,...
分类:
其他好文 时间:
2014-05-16 01:46:15
阅读次数:
460
最近状态一直不太好,至于原因,怎么说呢,不好说,总之就是纠结中覆盖着纠结,心思完全不在点上,希望可以借助Python的学习以及博客的撰写来调整回来,有的时候回头想一想,如果真的是我自己的问题呢,以前我经常跟别人说,千万不要怀疑自己,因为很清楚一旦连自己都变的不可信,那这个世界就太疯狂了,当一遍一遍的问我,现在连我自己都快怀疑自己了,我一遍一遍的说服别人,想不到现在竟然需要自己去说服自己,何其的悲哀...
分类:
编程语言 时间:
2014-05-16 01:33:23
阅读次数:
332