![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
阿福吃多少
这个作者很懒,什么都没留下…
展开
-
“笨办法”学Python笔记 Lesson1—5
一、作业内容笨办法学 Python 习题0-10以及加分题。二、作业代码:# -*- coding: utf-8 -*-#习题一:第一个程序print 'Hello,World'print 'Hello,Again'print 'I like typing this'print "This is fun"print "Yay! Printing"print "...原创 2017-02-11 15:31:01 · 3464 阅读 · 0 评论 -
“笨办法”学Python笔记 Lesson6—10
# 习题 6: 字符串(string)和文本x = "There are %d types of people." % 10binary = "binary"do_not = "don't"y = "Those who know %s and those who %s." % (binary, do_not)print(x)print(y)print("I said: %r....原创 2019-03-01 08:29:46 · 1646 阅读 · 0 评论 -
“笨办法”学Python笔记 Lesson11—17
一、作业内容笨办法学 Python 习题11-17以及加分题。二、作业代码:#习题11 提问print("How old are you?"),age = input()print("How tall are you?"),height = input()print("How much do you weight?"),weight = input()print("So...原创 2019-03-01 10:46:44 · 1308 阅读 · 0 评论 -
“笨办法”学Python笔记 Lesson18—24
一、作业内容笨办法学 Python 习题18-24以及加分题。二、作业代码:# 习题 18:命名、变量、代码、函数# 知识点总结:# 一、函数可以给代码片段命名,就跟变量和数字命名一样# 二、它们可以接受参数,就跟你的脚本接受argv一样。# 三、通过使用#1和#2,它们可以让你创建微型脚本或者小命令。# this one is like your script...原创 2019-03-01 12:10:45 · 2083 阅读 · 0 评论 -
“笨办法”学Python笔记 Lesson25—34
一、作业内容笨办法学 Python 习题25-34以及加分题。二、作业代码:# 习题 25: 更多更多的练习def break_words(stuff): """This function will break up words for us.""" words = stuff.splif(' ') return wordsdef sort_...原创 2019-03-01 13:21:56 · 1973 阅读 · 0 评论 -
“笨办法”学Python笔记 Lesson35—45
一、作业内容笨办法学 Python 习题35-45以及加分题。二、作业代码:#习题35 分支和函数from sys import exitdef gold_room(): print("The room is full of gold. How much do you take?") choice = input(">") if "0" in cho...原创 2019-03-01 13:52:57 · 2384 阅读 · 0 评论