#encoding:utf-8 pro_name_1=u'特仑苏' pro_price_1=48 pro_total_1=pro_price_1*1 pro_name_2=u'卡通垃圾桶' pro_price_2=2.5 pro_total_2=pro_price_2*1 pro_name_3=u'舒洁面巾纸' pro_price_3=3.3 pro_count_3=4 pro_total_3=pro_price_3*pro_count_3 pro_name_4=u'桂格玉米味燕麦片' pro_price_4=23 pro_total_4=pro_price_4*1 pro_name_5=u'dove洗面奶' pro_price_5=16.8 pro_count_5=4 pro_total_5=pro_price_5*pro_count_5 print u'-------------------------购物清单----------------------------';\ print u'商品名称'+' '+u'数量'+' '+u'单价'+' '+u'总计';\ print pro_name_1+' '+'1'+' '+str(pro_price_1)+' '+str(pro_total_1);\ print pro_name_2+' '+'1'+' '+str(pro_price_2)+' '+str(pro_total_2);\ print pro_name_3+' '+str(pro_count_3)+' '+str(pro_price_3)+' '+str(pro_total_3);\ print pro_name_4+' '+'1'+' '+str(pro_price_4)+' '+str(pro_total_4);\ print pro_name_5+' '+str(pro_count_5)+' '+str(pro_price_5)+' '+str(pro_total_5)
购物清单打印
#-*-coding:UTF-8 -*- #Python模板 print u" 【欢迎大家使用暗影邮箱系统!】\n=========================暗影xxx@anying.otg邮箱注册========================"; loginname=raw_input("请输入您要注册的用户名:".decode('utf-8').encode('gbk')); loginpwd=raw_input("请输入您的登录密码:".decode('utf-8').encode('gbk')); name=raw_input("请输入您的真是姓名:".decode('utf-8').encode('gbk')); yzm=int(raw_input("请输入验证码: 3+3=? ".decode('utf-8').encode('gbk'))); if yzm==6: print u"正在注册中,请稍候......" print u"==========================恭喜您注册成功了=========================\n",name+u": 您好!",u"\n您的邮箱地址为:",loginname+u"@anying.org\n您的密码为:",loginpwd+u"\n请保管好您的用户信息,进行登录!"; else: print u"验证码错误!" yzm=int(raw_input("请输入验证码: 3+3=? ".decode('utf-8').encode('gbk')));
邮箱注册打印
#encoding:utf-8 pro_name_1=u'特仑苏' pro_price_1=48 pro_total_1=pro_price_1*1 pro_name_2=u'卡通垃圾桶' pro_price_2=2.5 pro_total_2=pro_price_2*1 pro_name_3=u'舒洁面巾纸' pro_price_3=3.3 pro_count_3=4 pro_total_3=pro_price_3*pro_count_3 pro_name_4=u'桂格玉米味燕麦片' pro_price_4=23 pro_total_4=pro_price_4*1 pro_name_5=u'dove洗面奶' pro_price_5=16.8 pro_count_5=4 pro_total_5=pro_price_5*pro_count_5 print u'-------------------------购物清单----------------------------';\ print u'商品名称'+' '+u'数量'+' '+u'单价'+' '+u'总计';\ print pro_name_1+' '+'1'+' '+str(pro_price_1)+' '+str(pro_total_1);\ print pro_name_2+' '+'1'+' '+str(pro_price_2)+' '+str(pro_total_2);\ print pro_name_3+' '+str(pro_count_3)+' '+str(pro_price_3)+' '+str(pro_total_3);\ print pro_name_4+' '+'1'+' '+str(pro_price_4)+' '+str(pro_total_4);\ print pro_name_5+' '+str(pro_count_5)+' '+str(pro_price_5)+' '+str(pro_total_5)
购物清单。格式未整理
欢迎点击http://www.cnblogs.com/X-zone/梦猩魂的个人博客