首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看全站
#include<stdio.h>
 #include<math.h>
 #include<windows.h>
 #include<time.h>
 #define U 0.1
 #define V 0.053
 void SetColor(unsigned short ForeColor,unsigned short BackGroundColor)
 {
     HANDLE hCon=GetStdHandle(STD_OUTPUT_HANDLE);
     SetConsoleTextAttribute(hCon,(ForeColor%16)|(BackGroundColor%16*16));
 }
 int main()
......................
阅读全部 | ZHURONG2464 贴于 2023年5月10日 15:48     hide bbsi
using System;
using System.Net;
using System.Net.Sockets;
using System.Text;
namespace UdpClientServer
{
    class class1
    {
        static void Main()
        {
            StarListener();
            Console.ReadLine();
......................
阅读全部 | weiwei2023 贴于 2023年4月12日 13:04     hide bbsi
import random
 
# 生成一个随机数
num = random.randint(1, 100)
guesses = 0
 
# 询问用户猜数字
print("我已经想好了一个数字,请猜一猜是多少?(1~100)")
 
# 循环直到用户猜中为止
while True:
    # 读取用户输入的数字
......................
阅读全部 | asdas1111 贴于 2023年4月6日 19:34     hide bbsi
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
上一页 10 11 12 13 14 15 16 17 18 19 下一页