Python_test06-07
来源:互联网 发布:淘宝上卖水果怎么收费 编辑:程序博客网 时间:2024/06/04 21:46
题目:输出特殊图案,请在c环境中运行,看一看,Very Beautiful!
1.程序分析:字符共有256个。不同字符,图形不一样。
a = 176b = 218print(chr(b),chr(a),chr(a),chr(a),chr(b))print(chr(a),chr(b),chr(a),chr(b),chr(a))print(chr(a),chr(a),chr(b),chr(a),chr(a))print(chr(a),chr(b),chr(a),chr(b),chr(a))print(chr(b),chr(a),chr(a),chr(a),chr(b))
题目:输出9*9口诀
1.程序分析:分行与列考虑,共9行9列,i控制行,j控制列
for i in range(1,10): for j in range(1,i+1): r = i * j print("%d * %d = %d"%(i,j,r),end=" ") print("")
每天喂自己点鸡汤,可能会胖。哈哈哈!继续前行!
阅读全文
0 0
- Python_test06-07
- 07
- 05/07/07
- 2009-07-07
- 2009-07-07 TIPTOP
- 10 07 07 西班牙
- 2013-07-07
- 2013-07-07 C_Language
- 2014-07-07 日记
- 07/24----07/29
- 2005.11.07
- 0:07
- 2006.05.07
- 07年
- 07_1_16
- 07Myshow
- 07级
- 09.22.07
- Maven使用阿里云的仓库
- HDOJ 1027 STL(next_permutation)
- php合并图片
- OPNET 核心函数学习(二)
- Vue项目下使用Sass
- Python_test06-07
- vue-cli框架webpack.base.conf文件详解
- Flask的一次巧妙应用
- iOS UIImageView 加载含有汉字的url处理方法
- python2.7 import caffe遇到的那些坑-skimage.io stdint.h protobuf
- java HttpsURLConnection发送https请求
- mysql索引--使用注意事项
- linux+Windows双系统的各种难受
- bzoj1860 [Zjoi2006]麻将 结论+插数dp