首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看全站
def is_prime(n):
    if n < 2:
        return False
    for i in range(2, int(n**0.5)+1):
        if n % i == 0:
            return False
    return True
阅读全部 | asdas1111 贴于 2023年4月6日 19:32     hide bbsi
<svg onload=console.log(233)>
阅读全部 | 猪头226 贴于 2023年4月5日 22:29     hide bbsi
Pi=3.14;
r=float(input('20'));
s2=Pi*r*r;
r=r+20;
s1=Pi*r*r;
s=s1-s2;
print('20',s):
阅读全部 | 人中有剑 贴于 2023年3月30日 13:05     hide bbsi
#排序
s=[10,2,3,6,5,4,1,7,9,8,0]  
print(s)
s.sort(reverse = True )
print(s)

s=[10,2,3,6,5,4,1,7,9,8,0]
print(s)
s.sort()
print(s)

#计算
......................
阅读全部 | 人中有剑 贴于 2023年3月30日 12:26     hide bbsi
<script>alert(vulnerable)</script>
阅读全部 | l2060962312 贴于 2023年3月29日 20:43     hide bbsi
<script>alert(document.cookie)</script>
阅读全部 | l2060962312 贴于 2023年3月29日 20:36     hide bbsi
for i in range(1,10):
    for j in range(1,i+1):
        print(str(i)+'*'+str(j)+"="+str(i*j),end="")
    print()
print("----------------")
for i in range(9,0,-1):
    for j in range(i,0,-1):
        print(str(i)+'*'+str(j)+"="+str(i*j),end="")
    print()
阅读全部 | YIYIMAMA 贴于 2023年3月28日 13:45     hide bbsi
#include <stdio.h>

int main() {
printf("我在编程中国学C语言\n\n");

// 练习一下循环的使用
int i;
for (i=1; i<=20; i++) {
printf("我爱编程中国 %d 次\n", i);
}

printf("\n\n绘制一个心形图案:");
......................
阅读全部 | 黄书翰 贴于 2023年3月27日 22:04     hide bbsi
#include <stdio.h>
#include<windows.h>
int main()
{
    float x,y,a;
    for(y=1.5;y>-1.5;y-=0.1)
    {
    for(x=-1.5;x<1.5;x+=0.05)
    {
    a=x*x+y*y-1;
    putchar(a*a*a-x*x*y*y*y<=0.0?'*':' ');
    
......................
阅读全部 | 门中人ysl 贴于 2023年3月22日 20:25     hide bbsi
' Module paramByVal
'     Sub swap(x As Integer, y As Integer)
'         Dim temp As Integer
'         temp = x 
'         x = y 
'         y = temp 
'     End Sub
    
'  Sub Main(args As String())
'         Dim a As Integer = 100, b As Integer = 200
'         Console.WriteLine($"Before swap,the value of a is {a},the value of b is {b}")
'         swap(a,b)
......................
阅读全部 | 溯光 贴于 2023年3月20日 11:44     hide bbsi
上一页 7 8 9 10 11 12 13 14 15 16 下一页