上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 65 下一页
摘要: ''' 函数返回值 ''' def add(a,b): #结果result=a+b result=a+b #返回 结果值 return result r=add(1,2) print(r) 阅读全文
posted @ 2023-04-04 22:43 胖豆芽 阅读(8) 评论(0) 推荐(0) 编辑
摘要: ''' 函数传参 ''' def is_ok(persion,du): if du>37.5 : print(f"{persion},你需要隔离") else: print(f"{persion},温度正常,请进") is_ok("fqs",39) is_ok("doudou",37) 阅读全文
posted @ 2023-04-04 22:33 胖豆芽 阅读(14) 评论(0) 推荐(0) 编辑
摘要: ''' 函数的意义 ''' #求每个字符串的长度 str1="fqs123" str2="doudou" count=0 for i in str1: count+=1 print(str(count)) count=0 for i in str2: count+=1 print(str(count 阅读全文
posted @ 2023-04-04 21:53 胖豆芽 阅读(11) 评论(0) 推荐(0) 编辑
摘要: ''' continue break 公司有1万元 有20个员工来领工资 每人领取1千元 随机数绩效1到10 如果低于5 不发工资 下一位 如果领取完了 结束发工资 ''' #工资总和是1万元 每个人1千 #20个人的绩效 import random he=10000 while he>0 : ji 阅读全文
posted @ 2023-04-04 21:04 胖豆芽 阅读(19) 评论(0) 推荐(0) 编辑
摘要: ''' continue break ''' for i in range(1,2): print("语句1") for j in range(1,3): print(" 语句2 ") #中断所有循环的当前执行,直接进入下一次 内存循环次数全部执行一遍 continue print("语句3") p 阅读全文
posted @ 2023-04-04 20:45 胖豆芽 阅读(10) 评论(0) 推荐(0) 编辑
摘要: ''' for循环 坚持每天送玫瑰花 送一百天 每天一百天 ''' j=1; for j in range(1,101): for x in range(1, 11): print("第" + str(x) + "朵玫瑰") print("10朵玫瑰已送,我喜欢你") print("第"+str(j 阅读全文
posted @ 2023-04-03 23:19 胖豆芽 阅读(33) 评论(0) 推荐(0) 编辑
摘要: https://www.jianshu.com/p/35a5edb23d96 阅读全文
posted @ 2023-03-29 23:30 胖豆芽 阅读(91) 评论(0) 推荐(0) 编辑
摘要: java -verbose 加载 Java 编程语言代理, 请参阅 java.lang.instrument -splash:<imagepath> 使用指定的图像显示启动屏幕有关详细信息, 请参阅 http://www.oracle.com/technetwork/java/javase/docu 阅读全文
posted @ 2023-03-29 22:59 胖豆芽 阅读(90) 评论(0) 推荐(0) 编辑
摘要: https://www.codenong.com/cs106519461/ 阅读全文
posted @ 2023-03-29 21:56 胖豆芽 阅读(4) 评论(0) 推荐(0) 编辑
摘要: ''' for循环 求1到100中有几个偶数 ''' count=0 for x in range(1,100): if x%2==0: count+=1 print("有"+str(count)+"个偶数") 阅读全文
posted @ 2023-03-28 22:55 胖豆芽 阅读(27) 评论(0) 推荐(0) 编辑
上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 65 下一页