
我已经试过好多中方式了。。。环境还是没有搭上。。
JDK已经安装成功了。
现在,有没有连接下载SDK 等等的其他东西。。。
我自己下过SDK 也安装完啦 然后用Eclipse去连接ADT就是失败。。。我也不知道问题出在哪了。。
有没有可行的方法和资源。。。求助
。。。。
。。。。。。。
真的是试过好多种方法了都没连上。。。
[查看全文]
error: Error retrieving parent for item: No resource found that matches the given
name 'android:Widget.Material.ActionButton'.
导入V7包的时候,出现这个问题,求大神指点迷津
[查看全文]
本帖最后由 绯色の胖子 于 2015-6-12 18:13 编辑
在看完简明python后尝试着做最后的那个通讯录
在信息储存上有点问题解决不了
#!/usr/bin/python
#Filename : Directory inquirles
import cPickle as p
class Person_Address:
def __init__(self,name,group,phone_number,email_address):
self.name = name
self.group = group
self.phone_number = phone_number
self.email_address = email_address
def Print_message(self):
'''It is a message print function in class
print a person's name,group,phone number,email address'''
print self.name,self.group,self.phone_number,self.email_address
direct = {}
Storedfile = '/home/licht/Documents/MessageBook'
def add_new():
'''It is a new person message append function'''
direct['licht'] = Person_Address('licht','family','132','3628')
name = raw_input("Please inpute the person's name:")
group = raw_input("Please inpute the person's group:")
number = raw_input("Please inpute the person's phone numbr:")
email = raw_input("Please inpute the person's email address:")
direct[name] = Person_Address(name,group,number,email) #这里,类被存储到字典里时是存成
{'licht':<__main__.Person_Address instance at 0x20d6680>}
f_temp = file(Storedfile,'ab')
p.dump(direct,f_temp)
f_temp.close()
def search_one():
'''It is a person message search function'''
name = raw_input("Please inpute the person's name:")
f_temp = file(Storedfile,'rb')
while True:
try:
store = p.load(f_temp) #在这里被取出来后还是{'licht': <__main__.Person_Address instance at 0x20d6680>},怎么能才能让它取出以后是可以正常输出信息?
if store.has_key(name):
print store
break
except EOFError:
break
if __name__ == '__main__':
add_new()
search_one()
还求大神赐教!
更多 0
[查看全文]
题目:输入一个日期,计算N天之后的 年月日。
我做的是这个,但是到了1000天的时候就会差了一天 ,还找不出哪错了。。大神帮帮忙,看出错误指教一下,
如果自己写的对,也可以告诉我,不一定非要改我这个有源码直接发代码。。。谢谢拉
# include<stdio.h>
main()
{
int year,month,day;
int sum;
int run=0;//判断闰年用的,平年为0,闰年为1
int daytime;
int a[12]={31,28,31,30,31,30,31,31,30,31,30,31};
printf("您好!我是数学机器人,\n我会为您计算出您的出生日期后N天的年月日!\n\n");
printf("请输出生的年份:\n");
scanf("%d",&year);
printf("请输出生的月份:\n");
scanf("%d",&month);
printf("请输出生的日期:\n");
scanf("%d",&day);
printf("您的出生年月日为:%d年%d月%d日\n",year,month,day);
if((year%400==0)||((year%4==0)&&(year%100!=0)))
run=1;
printf("\n请输入天数\n");
scanf("%d",&daytime);
sum=daytime+day;
do
{
if(month==2)
a[month-1] +=run;
if(sum>a[month-1])
{
sum -=a[month-1];
month++;
}
if(month==13)
{
year++;
if(((year%4==0)&&(year%100!=0))||(year%400==0))
{
run=1;
}
else
run=0;
month=1;
}
}while(sum>a[month-1]);
day=sum;
printf("\n%d天之后的日期为:\n",daytime);
printf("%d年%d月%d日",year,month,day);
getch();
}
[查看全文]
•1、能进行+、-、*、/四则运算
•2、能正确计算带有圆括号的表达式
•3、能对整型数据进行计算
•4、能判断用户输入的表达式括号是否匹配
•5、能判断用户输入的表达式是否为正确的表达式
[查看全文]