http://news.gzcc.cn/html/2017/xiaoyuanxinwen_1027/8443.html 取得校园新闻的编号 >>> s="http://news.gzcc.cn/html/2017/xiaoyuanxinwen_1027/8443.html">>> s[45:54]' ...
分类:
其他好文 时间:
2018-03-21 16:30:41
阅读次数:
185
1.综合练习:画一面五星红旗,将代码与运行截图发布博客交作业。 代码如下: 截图: 2.字符串练习: http://news.gzcc.cn/html/2017/xiaoyuanxinwen_1027/8443.html 取得校园新闻的编号,代码及截图如下: 2.1: 2.2 https://doc ...
分类:
编程语言 时间:
2018-03-21 00:07:48
阅读次数:
354
字符串练习: http://news.gzcc.cn/html/2017/xiaoyuanxinwen_1027/8443.html 取得校园新闻的编号 https://docs.python.org/3/library/turtle.html 产生python文档的网址 http://news.g ...
分类:
其他好文 时间:
2018-03-20 22:58:25
阅读次数:
256
字符串练习: http://news.gzcc.cn/html/2017/xiaoyuanxinwen_1027/8443.html 取得校园新闻的编号 str='http://news.gzcc.cn/html/2017/xiaoyuanxinwen_1027/8443.html' print(s ...
分类:
其他好文 时间:
2018-03-20 22:57:54
阅读次数:
211
字符串练习: http://news.gzcc.cn/html/2017/xiaoyuanxinwen_1027/8443.html 取得校园新闻的编号 tr='http://news.gzcc.cn/html/2017/xiaoyuanxinwen_1027/8443.html' print(tr ...
分类:
其他好文 时间:
2018-03-20 22:57:03
阅读次数:
235
字符串练习: http://news.gzcc.cn/html/2017/xiaoyuanxinwen_1027/8443.html 取得校园新闻的编号 https://docs.python.org/3/library/turtle.html 产生python文档的网址 http://news.g ...
分类:
其他好文 时间:
2018-03-20 21:40:00
阅读次数:
196
1 . 字符串 .join方法 可以在一段字符串每个元素后加一个指定的元素 结果: 2 . for else使用 : for else 和while else基本相同,当都执行完以后走else. 结果: 3 . 字符串练习题 实现一个整数加法计算器:实现5 +9 或 5 + 9 或 5 +9 的输出 ...
分类:
其他好文 时间:
2018-01-24 16:54:10
阅读次数:
155
#Python字符串的拼接,以及单双引号的运用print('abc','efg') print("abc","efg") print('abc'+'efg') print('"abc"') print("'abc'") #字符串的多行输出 print('''abc''') print('''a b ... ...
分类:
编程语言 时间:
2018-01-20 21:29:04
阅读次数:
144
编程学习是个漫长、逐渐累加复杂度、综合难度的一门工程。需要自我驱动,督促自己往前走。Python测试开发是本年度重点学习目标。?今天来一个字符串的练习题,重在思路,不断训练自己的思维。 题目:找出字符串中出现次数最多的字符,并输出其出现的位置代码实现:#encoding=UTF-8s = "aaabbbhhiijk"letter_count_dict={}for i
分类:
编程语言 时间:
2017-12-16 21:18:38
阅读次数:
204
<!DOCTYPE html><html> <head> <meta charset="utf-8" /> <title>字符串练习</title> </head> <body> <script> //字符串的长度 var hello = 'helloword'; console.log(hello ...
分类:
Web程序 时间:
2017-11-20 13:24:26
阅读次数:
123