摘要:
1、实例: 下载一首英文的歌词或文章,将所有,.?!等替换为空格,将所有大写转换为小写,统计某几个单词出现的次数,分隔出一个一个的单词。 str='''However,Xi wants more effort to be taken to build a safer China.The author 阅读全文
摘要:
1、画五角星 import turtleturtle.bgcolor('red')turtle.color('yellow')turtle.fillcolor('yellow')turtle.begin_fill() for i in range(5): turtle.forward(100) tu 阅读全文
摘要:
1、简单输入输出交互。 print('Hello World')input('please input your name:')name=input(':')print(name)name=input('What is your name?/n')print('Hi,%s'%name) 2、用户输入 阅读全文