摘要:
1、今天学习了函数,相比前几天状态好了一丢丢。。。。 我是分割线 2、以下是众多的栗子 #函数是用来重新使用的。 #定义函数 """ 1、首先要写出裸代码,看看那些是需要重复使用的 2、接下去将需要重复使用的代码转换成参数,带入到函数中 def funcName([param]): 执行体 [ret 阅读全文
posted @ 2019-08-01 16:17
TheNerverLemon
阅读(189)
评论(2)
推荐(1)
摘要:
1、今天学习了循环语句 2、以下是一些小程序 import matha,b,c=map(float,input('Enter a,b,c:').split(','))root_=(b*b)-(4*a*c)if root_>0: root_1=(-b+math.sqrt(b*b-4*a*c))/2*a 阅读全文
posted @ 2019-08-01 08:50
TheNerverLemon
阅读(225)
评论(0)
推荐(1)
摘要:
1、世界上最伟大的语言: print('hello world') 我是分割线 2、""" 多行注释 """ 当六个引号给予变量的时候,即变为字符串 3、以下是众多的小程序 a=int(input())b=int(input())print(a+b) input_1=input() input_2= 阅读全文
posted @ 2019-08-01 08:42
TheNerverLemon
阅读(142)
评论(0)
推荐(1)
浙公网安备 33010602011771号