摘要:
1.字符串大小写转换 str = "liu guangquan吃屁" print(str.upper()) # 把所有字符中的小写字母转换成大写字母 print(str.lower()) # 把所有字符中的大写字母转换成小写字母 print(str.capitalize()) # 把第一个字母转化为 阅读全文
posted @ 2021-08-19 19:24
菇凉何人
阅读(92)
评论(0)
推荐(0)
摘要:
1.一个整数,它加上100和加上268后都是一个完全平方数,请问该数是多少? import math for i in range(10000): # 使用数学中的开方函数sqrt x=int(math.sqrt(i+100)) y=int(math.sqrt(i+268)) if(x*x==i+1 阅读全文
posted @ 2021-08-19 16:55
菇凉何人
阅读(150)
评论(0)
推荐(0)
浙公网安备 33010602011771号