24
2018
04

full-speed-python 习题解答(五)

项目地址:网页链接5.2 Exercise with the while statement1.Implement a function that receives a number as parameter and prints, in decreasingorder, which numbers are even and which are odd, until it reaches 0.  def even_odd(n):    
24
2018
04

每日一条

一味维稳的从来都是既得利益者.

23
2018
04

今日一条

今天是世界读书日.莎士比亚(William Shakespeare 1564. 4. 23〜1616. 4.23)的生日.

23
2018
04

full-speed-python 习题解答(四)

项目地址:网页链接5.1 Exercise with the for loop1.Create a function “add” that receives a list as parameter and returns the sum ofall elements in the list. Use the “for” loop to iterate over the elements of the list.  def add(alist):  &nb
22
2018
04

full-speed-python 习题解答(三)

项目地址:网页链接

  • 4.1 Exercise with the math module

    1.Find the greatest common divisor of the following pairs of numbers: (15, 21), (152, 200), (1988, 9765). 2.Compute the ba

22
2018
04

full-speed-python 习题解答(二)

项目地址:网页链接3.2 Exercise with strings1.Initialize the string “abc” on a variable named “s”:(a) Use a function to get the length of the string.(b) Write the necessary sequence of operations to transform the string “abc” in“aaabbbccc”. Suggestion: Use str
22
2018
04

每日一条

最希望选举成本高昂的是权贵,这样穷人就得不到选举权;最希望司法程序高昂的是权贵,这样穷人就打不起官司;最希望媒体版面费高昂的还是权贵,这样穷人就得不到话语权.--间客
21
2018
04

沉重悼念A神,你的音乐将使天堂更加美好!

20
2018
04

每日一条

这世间的真话本就不多,一个女子的脸红,胜过一大段对白--老舍

19
2018
04

full-speed-python 习题解答(一)

项目地址:网页链接3.1 Exercises with numbers1.Try the following mathematical calculations and guess what is happening: (3/2),(3//2), (3%2), (3**2).  print(3/2)   print(3//2)   print(3%2)   print(3**2)1.5 1 1 92.Ca