浙大acm,第一题 Calculate a + b Input The input will consist of a series of pairs of integers a and b,separated by a space, one pair of integers per line. Output For each pair of input integers a ...
分类:
编程语言 时间:
2014-09-03 06:16:56
阅读次数:
260
要求:1、接受用户输入;2、判断用户是否是alex,如果不是重新接受输入;3、判断用户alex的密码是否是11111,若不是重新输入;代码如下:input=raw_input("yourname:")
whileTrue:
ifinput==‘alex‘:
print"welcomealex"
password=raw_input("yourpassword:")
p=‘111111‘
while..
分类:
编程语言 时间:
2014-09-03 02:45:16
阅读次数:
223
=================================================EmployeeID.cs(学生编号类)usingSystem;
usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Threading.Tasks;
namespaceConsoleApplication7
{
//作为键的类型必须要重写GetHashCode()
p..
分类:
其他好文 时间:
2014-09-03 02:44:16
阅读次数:
237
------------------------------------------------------------------------------Person.csusingSystem;
usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Threading.Tasks;
namespaceConsoleApplication1
{
publicclassPerson
{
publicst..
分类:
其他好文 时间:
2014-09-03 02:43:16
阅读次数:
159
前言:python下的celery是啥东西大家应该有了解,是一个异步的任务框架。话说,我以前写过一个报警平台的项目,也需要任务的扩展成分布式,当时总是觉得用celery不是那么太靠谱,所以就自己写了一个分布式的任务派发的系统。今个和朋友聊起了分布式爬虫,这哥们说任务有时候经..
分类:
编程语言 时间:
2014-09-03 02:42:47
阅读次数:
1943
--------------------------------------------------------------EmployeeID.cs(键)usingSystem;
usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Threading.Tasks;
usingSystem.Collections;
publicclassEmployeeID:IComparable<Emp..
分类:
其他好文 时间:
2014-09-03 02:42:16
阅读次数:
179
python执行方法:在linux命令行中输入python将进入python交互环境中,在这可以输入python语言的命令或函数,如exit()为退出交互环境,id()为查看变量引用的值在内存中的存储位置,使用vim编辑器打开一个文档,首行输入#!/usr/bin/python,后接python语言,保存退出后,添..
分类:
编程语言 时间:
2014-09-03 02:41:46
阅读次数:
253
按照范例,将代码稍加变动,打出来了,如下所示using System;using System.Collections.Generic;using System.Linq;using System.Threading;using System.Threading.Tasks;using System...
分类:
编程语言 时间:
2014-09-03 01:27:15
阅读次数:
282