摘要:
题目一 输入一个字符串,判断是否为回文数 # “回文”是指正读反读都能读通的句子,它是古今中外都有的一种修辞方式和文字游戏,如“我为... 阅读全文
posted @ 2022-10-07 20:31
I'm_江河湖海
阅读(21)
评论(0)
推荐(0)
摘要:
题目一 冒泡排序 由小到大的顺序 '''第一个是自己写的temLst=[1,3,53,6,7,35,63,6,4,7,5,6,7,3... 阅读全文
posted @ 2022-10-07 20:31
I'm_江河湖海
阅读(59)
评论(0)
推荐(0)
摘要:
题目一 冒泡排序 由小到大的顺序 '''第一个是自己写的temLst=[1,3,53,6,7,35,63,6,4,7,5,6,7,3... 阅读全文
posted @ 2022-10-07 20:31
I'm_江河湖海
阅读(17)
评论(0)
推荐(0)
摘要:
方式一 循环 temStr='adbeorj1305'newStr=''i=0while i0: S1=S1+L1.pop()... 阅读全文
posted @ 2022-10-07 20:31
I'm_江河湖海
阅读(7)
评论(0)
推荐(0)
摘要:
方式一 循环 temStr='adbeorj1305'newStr=''i=0while i0: S1=S1+L1.pop()... 阅读全文
posted @ 2022-10-07 20:31
I'm_江河湖海
阅读(18)
评论(0)
推荐(0)
摘要:
在python编程中,一般使用global 关键字来定义全局变量,但是发现 global 关键字在涉及多个文件时,好像存在问题。 比... 阅读全文
posted @ 2022-10-07 20:31
I'm_江河湖海
阅读(91)
评论(0)
推荐(0)
摘要:
dict(字典) Python内置了字典:dict的支持,dict全称dictionary,在其他语言中也称为map,使用键-值(k... 阅读全文
posted @ 2022-10-07 20:31
I'm_江河湖海
阅读(15)
评论(0)
推荐(0)
摘要:
一:储备知识 **1.*args, kwargs def index(x,y): print(x,y)def wrapper(... 阅读全文
posted @ 2022-10-07 20:31
I'm_江河湖海
阅读(8)
评论(0)
推荐(0)
摘要:
一:知识储备 由于语法糖@的限制,outter函数只能有一个参数,并且该才是只用来接收被装饰对象的内存地址 def outter(f... 阅读全文
posted @ 2022-10-07 20:31
I'm_江河湖海
阅读(12)
评论(0)
推荐(0)
摘要:
一:知识储备 由于语法糖@的限制,outter函数只能有一个参数,并且该才是只用来接收被装饰对象的内存地址 def outter(f... 阅读全文
posted @ 2022-10-07 20:31
I'm_江河湖海
阅读(8)
评论(0)
推荐(0)

浙公网安备 33010602011771号