国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

福建高中信息技術會考操作題視頻

這篇具有很好參考價值的文章主要介紹了福建高中信息技術會考操作題視頻。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

大家好,小編來為大家解答以下問題,福建高中信息技術會考操作題視頻,福建高中信息技術會考試題操作題,現在讓我們一起來看看吧!

福建高中信息技術會考操作題視頻,單例模式,python

大家好,小編來為大家解答以下問題,高中信息技術會考python題庫及答案,高中信息技術會考python操作題,現在讓我們一起來看看吧!

福建高中信息技術會考操作題視頻,單例模式,python

高中信息技術(Python)必修題單

高中課本默認初中學習過Python,建議先嘗試下?初中信息技術(Python)TZOJ題單
必修部分,即普通高中學業(yè)水平考試(學考)內容,Python題目有一個分類?TZOJ中學信息技術(Python)題目分類

福建高中信息技術會考操作題視頻,單例模式,python

必修1 數據與計算

第一章 數據與信息

1.1 感知數據
1.2 數據、信息與知識
1.3 數據采集與編碼

P16?6882?十進制轉二進制

a=int(input())
m=''
while a>0:
    m+=str(a%2)
    a//=2
print(m[::-1])

或:

a=int(input())
m=bin(a)
print(m[2:])

P16?6883?二進制轉十進制

a=input()
print(int(a,2))

P16 7031?十進制轉十六進制

n=int(input())
s=str(hex(n))
print(s[2:].upper())

P16 7207?二進制轉十六進制

n=input()
s=hex(int(n,2))
print(s[2:].upper())

P17?5885?ASCII表

s=input()
print(ord(s))

P17 5889?打印字符

s=int(input())
print(chr(s))

P22?6831?蘋果裝箱問題

lst = [1]
i = 1
num = int(input())
while sum(lst) <= num:
    lst.append(2 ** i)
    i = i + 1
lst.pop(-1)
if sum(lst) < num:
    lst.append(num - sum(lst))
print(len(lst))
for i in range(len(lst)):
    if i != len(lst) - 1:
        print(lst[i], end=' ')
    else:
        print(lst[i])
1.4 數據管理與安全
1.5 數據與大數據

P30?7208?Wave格式音頻文件存儲容量

m = int(input())
s = int(input())
mb = (44.1 * 1000 * 2 * 8 * 2 * (m * 60 + s)) / (8 * 1024 * 1024)
print(format(mb, '.1f'))

P30 7209?BMP文件格式容量

a = int(input())
b = int(input())
print(format(a*b*24/8/1024/1024, '.2f'))

P33?7212?Base64編碼簡單版

import base64
n = input()
result = base64.b64encode(n.encode())
for x in result:
    print(chr(x), end="")

P33 7213?Base64編碼解碼簡單版

import base64
n = input()
result = base64.b64decode(n)
for x in result:
    print(chr(x), end="")

第二章 算法與問題解決

2.1 算法概念及描述

P38?7134?最大公約數之更相減損術

m = int(input())
n = int(input())
while m != n:
    if m > n:
        m = m - n
    else:
        n = n - m
print(n)

P38 7135?最大公約數之輾轉相除法

def gcd(x, y):
    r = x % y
    if r == 0:
        return y
    else:
        return gcd(y, r)


m = int(input())
n = int(input())
if m < n:
    t = m
    m = n
    n = t
z = gcd(m, n)
print(z)

或:

m = int(input())
n = int(input())
if m < n:
    t = m
    m = n
    n = t
r = m % n
while r != 0:
    m = n
    n = r
    r = m % n
print(n)

P39?1094?C語言實驗題――一元二次方程

a = float(input())
b = float(input())
c = float(input())
disc = (b ** 2 - 4 * a * c) ** 0.5
x1 = (-b + disc) / (2 * a)
x2 = (-b - disc) / (2 * a)
if x1 < x2:
    t = x1
    x1 = x2
    x2 = t
print(format(x1, '.2f'), format(x2, '.2f'))

P40?6832?函數補充:斐波那契數列的前n個元素

def fib(x):
    if x == 1:
        return 1
    elif x == 2:
        return 1
    else:
        return fib(x - 1) + fib(x - 2)

P40 7210?取區(qū)間中點1

start = int(input())
end = int(input())
middle = (start + end) / 2
print(format(middle, '.1f'))

P40?7216?賬號登錄程序

num = 0
pw = input()
while pw != "Python@16":
    num = num + 1
    if num < 5:
        print("The password is wrong. Try again!")
        pw = input()
    else:
        print("Input the password more than 5 times. Please reset your password by email!")
        break
if pw == "Python@16":
    print("Login successful!")

P41?7217?洗衣機洗衣算法---是否加水

n = float(input())
if n >= 50:
    print("Break")
else:
    print("Continue")

P41 7218?洗衣機洗衣算法---漂洗是否加水

n = int(input())
for i in range(n):
    input_list = input().split()
    num, quantity_of_water = int(input_list[0]), float(input_list[1])
    flag = False
    if quantity_of_water < 50:
        if num < 3:
            print("Water")
            flag = True
    if not flag:
        print("No")

P42?7219?智能空調算法--壓縮機運行

t = float(input())
if t <= 26:
    print("pause")
else:
    print("run")

P46?6833?停車場車位探測中的算法

x = int(input())
if x == 0:
    print("green, parking space is empty")
else:
    print("red, parking space is occupied")

P47?7220?智能停車場引導系統(tǒng)

n = int(input())
park = []
for i in range(n):
    park.append(int(input()))
count = 0
for x in park:
    if x == 0:
        count = count + 1
print(count)

P47?7135?最大公約數之輾轉相除法

同上,重復

P47 7134?最大公約數之更相減損術比較

同上,重復

P48?7226?電飯鍋燒飯--溫度控制

n = int(input())
flag = False
for i in range(n):
    temp = float(input())
    if temp < 103 and not flag:
        print("Continue")
    elif not flag:
        print("Break")
        flag = True
2.2 算法的控制結構

P50?6834?一元二次方程是否有實數根

a = float(input())
b = float(input())
c = float(input())
disc = b ** 2 - 4 * a * c
if disc >= 0:
    print("exist")
else:
    print("not exist")

P51?6835?超市收銀系統(tǒng)

n = int(input())
s = 0
for i in range(n):
    m = float(input())
    s += m
# print(format(s, '.2f'))
print("%.2f" % s)

P52?7228?智能農業(yè)大棚2

n = int(input())
for i in range(n):
    temp = float(input())
    if temp > 28+40:
        print("Start up cooling system")
    elif temp < 28-18:
        print("Start up heating system")
2.3 用算法解決問題的過程

P54?6741?動動有獎

n = int(input())
s, c = 0, 0
for i in range(n):
    x, f = map(int, input().split())
    if f == 1:
        if x >= 1000:
            t = 0.3+((x-1000)//2000)*0.1
            if t > 3:
                t = 3
        else:
            t = 0
        c = c+1
        if c >= 4:
            s = s+2*t
        else:
            s = s+t
    else:
        c = 0
print("%.1f"%s)

P58?7229?3個數排序簡單版

a = int(input())
b = int(input())
c = int(input())
s = a + b + c
ma = max(a, max(b, c))
mi = min(a, min(b, c))
mid = s - ma - mi
print(mi, mid, ma)

或:

a = int(input())
b = int(input())
c = int(input())
s = a + b + c
ma = max(a, max(b, c))
mi = min(a, min(b, c))
mid = s - ma - mi
print(mi, mid, ma)

P58 6836?新年大合唱比賽得分

lista = []
s = 0
for i in range(10):
    lista.append(float(input()))
    s += lista[i]
s = (s - max(lista) - min(lista)) / 8
print(format(s, '.2f'))
# print("%.2f" % s)

第三章 算法的程序實現

3.1 用計算機編程解決問題的一般過程

P67?1530?哥德巴赫猜想

def is_prime(n):
    if n == 1:
        return False
    k = int(n ** 0.5)
    for x in range(3, k+1, 2):
        if n % x == 0:
            return False
    return True


def is3same(a, b, c):
    return (a == b) and (b == c)


def is2same(a, b, c):
    if a == b and a != c:
        return True
    if a == c and a != b:
        return True
    if b == c and b != a:
        return True


n = int(input())
while n != 0:
    a = b = r = 0
    for i in range(3, n, 2):
        if is_prime(i):
            for j in range(3, n - i, 2):
                if is_prime(j) and is_prime(n-i-j):
                    if is3same(i, j, n-i-j):
                        r = r + 1
                    elif is2same(i, j, n-i-j):
                        a = a + 1
                    else:
                        b = b + 1
    r += a//3 + b//6
    if r != 0:
        print(r)
    else:
        print("Error")
    n = int(input())

P67 4865?統(tǒng)計單詞數

import re

while True:
    try:
        find = input().lower()
        inp = input().lower()
        cmp = re.compile('\\b' + find + '\\b')
        res = re.search(cmp, inp)
        if res is None:
            print(-1)
        else:
            ls = inp.split(" ")
            print("{0} {1}".format(ls.count(find), res.span()[0]))
    except:
        break

P69?1452?C語言實驗題――Hello World

print("Hello, World!")

P69 1001?整數求和

a=input()
b=input()
print(int(a)+int(b))
3.2 Python語言程序設計

P77?7231?子串問題1

a = input()
b = input()
if b in a:
    print("exist")
else:
    print("not exist")

P73?7165?列表索引問題簡單版1

a=input()
print(a[4])

P73 7169?字符串切片1

lista = input()
print(lista[1:4])

P77?6837?區(qū)間測速

t = float(input())
t /= 3600
v = 25 / t
if v > 100:
    print("speeding")
else:
    print("normal")

P80?7236?區(qū)間測速加強版

t = float(input())
t = t / 3600
v = 25 / t
if v > 100:
    if v < 120:
        print(format(v, '.1f'))
        print("Exceeding the specified speed and less than 20%")
    elif v < 150:
        print(format(v, '.1f'))
        print("Exceeding the specified speed by more than 20% and less than 50%")
    elif v < 170:
        print(format(v, '.1f'))
        print("Exceeding the specified speed by more than 50% and less than 70%")
    else:
        print(format(v, '.1f'))
        print("Exceeding the specified speed by more than 70%")
else:
    print(format(v, '.1f'))
    print("normal")

P81?6838?熱量消耗

a = input().split()
b = []
for x in a:
    b.append(int(x))
print(sum(b))

P83?7191?猜數游戲2

while True:
    a = int(input())
    if a == 23:
        print("right")
        break
    elif a > 23:
        print("bigger")
    else:
        print("smaller")

P84?6839?求地的面積

def area(a, b, c):
    p = (a + b + c) / 2
    s = (p * (p - a) * (p - b) * (p - c)) ** 0.5
    return s


l1 = float(input())
l2 = float(input())
l3 = float(input())
l4 = float(input())
l5 = float(input())

y1 = area(l1, l2, l5)
y2 = area(l3, l4, l5)
y = y1 + y2
print(format(y, '.2f'))

P85?6781?算數平方根

n = float(input())
#print( format( n ** 0.5, '.2f'))
print('%.2f' % ( n ** 0.5))

P86?7237?圓的面積加強版

import math
n = float(input())
s = math.pi * (n ** 2)
print(format(s, '.8f'))

P89?6810?兩個數較大

a=int(input())
b=int(input())
if a >= b:
    print(a)
else:
    print(b)

P89 5908?三個數的最大值

a = int(input())
b = int(input())
c = int(input())
# 打擂臺算法
imax = a
if b > imax:
    imax = b
if c > imax:
    imax = c
print(imax)

或:

a = int(input())
b = int(input())
c = int(input())
imax = max(a, max(b, c))
print(imax)

P89 1459?求最大值

n = int(input())
lista = []
for i in range(n):
    lista.append(int(input()))
print(max(lista))

P89 6840?身份證號碼

s = input()
print("{}-{}-{}".format(s[6:10], s[10:12], s[12:14]))
if int(s[-2]) % 2 == 0:
    print("female")
else:
    print("male")

P89 5953?求1到n中的偶數的和

s = input()
print("{}-{}-{}".format(s[6:10], s[10:12], s[12:14]))
if int(s[-2]) % 2 == 0:
    print("female")
else:
    print("male")

P89 6841?檢測字符串是否全是數字

s = input()
if s.isdigit():
    print(1)
else:
    print(0)
3.3 簡單算法及其程序實現

P91?7238?答題卡填涂--判斷RGB顏色

r = int(input())
g = int(input())
b = int(input())
gray = 0.299 * r + 0.587 * g + 0.1144 * b
if gray < 132:
    print("Black")
else:
    print("White")

P91?6842?整數的因子

n = int(input())
for i in range(1, n+1):
    if n % i == 0:
        print(i)

P92?7240?答題卡填涂--像素填涂個數

n = int(input())
count = 0
for i in range(n):
    a = float(input())
    if a < 132:
        count = count + 1
print(count)

P93?7241?答題卡填涂--信息點是否填涂判斷

count = 0
for i in range(300):
    R, G, B = map(int, input().split())
    gray = 0.299 * R + 0.587 * G + 0.1144 * B
    if gray < 132:
        count = count + 1
prob = count / 300
if prob >= 0.64:
    print("True")
else:
    print("False")

P100?6843?城市人口問題

x = float(input())
y = float(input())
year = 0
while x < y:
    x *= 1.012
    year = year + 1
print(year)

P100 6844?設備價格問題

m = 120
n = int(input())
for i in range(2, n+1):
    if i < 7:
        m -= 10
    else:
        m *= 0.75
print(format(m, '.2f'))

P100 6845?星期幾問題

y = int(input())
m = int(input())
d = int(input())
if m == 1:
    m = 13
    y -= 1
if m == 2:
    m = 14
    y -= 1
c = y // 100
y %= 100
w = y + int(y/4) + int(c/4) - 2 * c + int(26 * (m + 1)/10) + d - 1
w %= 7
if w == 0:
    print("Sunday")
elif w == 1:
    print("Monday")
elif w == 2:
    print("Tuesday")
elif w == 3:
    print("Wednesday")
elif w == 4:
    print("Thursday")
elif w == 5:
    print("Friday")
elif w == 6:
    print("Saturday")

P100 6846?小z的簡單加密

s = input()
b = []
for x in s:
    if x == 'a':
        x = 'z'
    else:
        x = chr(ord(x) - 1)
    b.append(x)
for x in b:
    print(x, end='')

P100 6847?韓信點兵

for i in range(1000, 1101):
    if i % 3 == 2 and i % 5 == 4 and i % 7 == 6:
        print(i)

P100 7194?百錢買百雞 簡單版

for i in range(21):
    for j in range(34):
        k = 100 - i - j
        if 5 * i + 3 * j + k / 3 == 100:
            print(i, j, k)

P101?6848?籃球得分預測問題

a, b = map(int, input().split(':'))
team = input()
t = int(input())
if a > b:
    a -= 3
    if team == 'A':
        a += 0.5
    else:
        a -= 0.5
    if a < 0:
        a = 0
    a = a ** 2
    if a > t:
        team = "A"
    else:
        team = "B"
else:
    b -= 3
    if team == 'B':
        b += 0.5
    else:
        b -= 0.5
    if b < 0:
        b = 0
    b = b ** 2
    if b > t:
        team = "B"
    else:
        team = "A"
print(team)

P101 6862?反彈高度

n = int(input())
h = 100
s = 0
for i in range(1, n+1):
    s += h*2
    h /= 2
s -= 100
print(format(s, '.2f'))
print(format(h, '.2f'))

P101 5006?害死人不償命的(3n+1)猜想

n = int(input())
step = 0
while n > 1:
    if n % 2 == 0:
        n /= 2
    else:
        n = (3 * n + 1) / 2
    step = step + 1
print(step)

P101 7242?成績等級統(tǒng)計

a = b = c = d = e = 0
for i in range(30):
    n = int(input())
    if 90 <= n <= 100:
        a = a + 1
    elif 80 <= n <= 89:
        b = b + 1
    elif 70 <= n <= 79:
        c = c + 1
    elif 60 <= n <= 69:
        d = d + 1
    else:
        e = e + 1
print("A:", a)
print("B:", b)
print("C:", c)
print("D:", d)
print("E:", e)

P101 1499?C語言實驗題――雞兔同籠

n,m=map(int,input().split())
y=m//2-n
x=n-y
print(x,y)

P104?6849?圖書優(yōu)惠問題

n = int(input())
a = n // 300
b = (n % 300) // 200
c = ((n % 300) % 200) // 100
print(n - (a * 120 + b * 70 + c * 30))

P104 1476?C語言實驗題――圓周率

n = int(input())
pi = 0
for i in range(1, n+1):
    pi += 1 / (4 * i - 3) - 1 / (4 * i - 1)
pi *= 4
print(format(pi, '.5f'))

P104 7195?利用蒙特卡羅方法計算π的值

import random
num = int(input())
point = 0
for i in range(num):
    x = random.random()
    y = random.random()
    if (x * x + y * y) <= 1:
        point = point + 1
print((point / num) * 4)

第四章 數據處理與應用

4.1 常用表格數據的處理
4.2 大數據處理
4.3 大數據典型應用

第五章 人工智能及應用

5.1 人工智能的產生與發(fā)展
5.2 人工智能的應用
5.3 人工智能對社會的影響

必修2 信息系統(tǒng)與社會

第一章 信息系統(tǒng)概述

1.1 信息技術與信息系統(tǒng)
1.2 信息系統(tǒng)的組成與功能
1.3 信息系統(tǒng)的應用
1.4 信息社會及其發(fā)展

第二章 信息系統(tǒng)的支撐技術

2.1 計算機硬件
2.2 計算機軟件
2.3 移動終端
2.4 傳感與控制
2.5 網絡系統(tǒng)
2.6 網絡應用軟件開發(fā)

第三章 信息系統(tǒng)安全

3.1 信息安全與保護
3.2 信息系統(tǒng)安全與防護

P106?6850?凱撒密碼加密

def change(code, key):
    if 'a' <= code <= 'z':
        m = ord(code) - ord('a') + key
        return chr((m + 26) % 26 + ord('a'))
    if 'A' <= code <= 'Z':
        m = ord(code) - ord('A') + key
        return chr((m + 26) % 26 + ord('A'))
    return code


s = input()
n = int(input())
a = []
for x in s:
    a.append(change(x, n))
for i in range(len(a)):
    if i != len(a) - 1:
        print(a[i], end='')
    else:
        print(a[i])

P106 6851?凱撒密碼解密

def change(code, key):
    if 'a' <= code <= 'z':
        m = ord(code) - ord('a') - key
        return chr((m + 26) % 26 + ord('a'))
    if 'A' <= code <= 'Z':
        m = ord(code) - ord('A') - key
        return chr((m + 26) % 26 + ord('A'))
    return code


s = input()
n = int(input())
a = []
for x in s:
    a.append(change(x, n))
for i in range(len(a)):
    if i != len(a) - 1:
        print(a[i], end='')
    else:
        print(a[i])

P116?6875?簡單換位密碼1

s = input()
print(s[::-1])

P116 6876?簡單換位密碼2

s = list(input())
n = int(input())
for i in range(n):
    x = s.pop(0)
    s.append(x)
for i in range(len(s)):
    if i != len(s)-1:
        print(s[i], end="")
    else:
        print(s[i])

P117?6877?簡單異或密碼

始終是Running Error,不知道為什么?

以下代碼Running Error,不知道為什么?
s = input()
m = bin(int(input()))
m = m[2:]
lst1 = []
for i in range(len(s)):
    x = bin(ord(s[i]))
    x = x[2:]
    n = len(x)
    y = '0' * (8 - n) + x
    lst2 = []
    for j in range(8):
        lst2.append(int(y[j]) ^ int(m[j]))
    lst1.append(lst2)
for i in range(len(lst1)):
    for j in range(len(lst1[i])):
        print(str(lst1[i][j]), end='')
    print('', end=' ')

第四章 信息系統(tǒng)

4.1 搭建信息系統(tǒng)的前期準備
4.2 搭建信息系統(tǒng)
4.3 完善信息系統(tǒng)

必修1第四、五章及必修2的編程為具體應用,平臺無法提供測試同義詞。文章來源地址http://www.zghlxwxcb.cn/news/detail-830967.html

大家好,小編來為大家解答以下問題,高中信息技術會考python題庫及答案,高中信息技術會考python操作題,現在讓我們一起來看看吧!

福建高中信息技術會考操作題視頻,單例模式,python

高中信息技術(Python)必修題單

高中課本默認初中學習過Python,建議先嘗試下?初中信息技術(Python)TZOJ題單
必修部分,即普通高中學業(yè)水平考試(學考)內容,Python題目有一個分類?TZOJ中學信息技術(Python)題目分類

福建高中信息技術會考操作題視頻,單例模式,python

必修1 數據與計算

第一章 數據與信息

1.1 感知數據
1.2 數據、信息與知識
1.3 數據采集與編碼

P16?6882?十進制轉二進制

a=int(input())
m=''
while a>0:
    m+=str(a%2)
    a//=2
print(m[::-1])

或:

a=int(input())
m=bin(a)
print(m[2:])

P16?6883?二進制轉十進制

a=input()
print(int(a,2))

P16 7031?十進制轉十六進制

n=int(input())
s=str(hex(n))
print(s[2:].upper())

P16 7207?二進制轉十六進制

n=input()
s=hex(int(n,2))
print(s[2:].upper())

P17?5885?ASCII表

s=input()
print(ord(s))

P17 5889?打印字符

s=int(input())
print(chr(s))

P22?6831?蘋果裝箱問題

lst = [1]
i = 1
num = int(input())
while sum(lst) <= num:
    lst.append(2 ** i)
    i = i + 1
lst.pop(-1)
if sum(lst) < num:
    lst.append(num - sum(lst))
print(len(lst))
for i in range(len(lst)):
    if i != len(lst) - 1:
        print(lst[i], end=' ')
    else:
        print(lst[i])
1.4 數據管理與安全
1.5 數據與大數據

P30?7208?Wave格式音頻文件存儲容量

m = int(input())
s = int(input())
mb = (44.1 * 1000 * 2 * 8 * 2 * (m * 60 + s)) / (8 * 1024 * 1024)
print(format(mb, '.1f'))

P30 7209?BMP文件格式容量

a = int(input())
b = int(input())
print(format(a*b*24/8/1024/1024, '.2f'))

P33?7212?Base64編碼簡單版

import base64
n = input()
result = base64.b64encode(n.encode())
for x in result:
    print(chr(x), end="")

P33 7213?Base64編碼解碼簡單版

import base64
n = input()
result = base64.b64decode(n)
for x in result:
    print(chr(x), end="")

第二章 算法與問題解決

2.1 算法概念及描述

P38?7134?最大公約數之更相減損術

m = int(input())
n = int(input())
while m != n:
    if m > n:
        m = m - n
    else:
        n = n - m
print(n)

P38 7135?最大公約數之輾轉相除法

def gcd(x, y):
    r = x % y
    if r == 0:
        return y
    else:
        return gcd(y, r)


m = int(input())
n = int(input())
if m < n:
    t = m
    m = n
    n = t
z = gcd(m, n)
print(z)

或:

m = int(input())
n = int(input())
if m < n:
    t = m
    m = n
    n = t
r = m % n
while r != 0:
    m = n
    n = r
    r = m % n
print(n)

P39?1094?C語言實驗題――一元二次方程

a = float(input())
b = float(input())
c = float(input())
disc = (b ** 2 - 4 * a * c) ** 0.5
x1 = (-b + disc) / (2 * a)
x2 = (-b - disc) / (2 * a)
if x1 < x2:
    t = x1
    x1 = x2
    x2 = t
print(format(x1, '.2f'), format(x2, '.2f'))

P40?6832?函數補充:斐波那契數列的前n個元素

def fib(x):
    if x == 1:
        return 1
    elif x == 2:
        return 1
    else:
        return fib(x - 1) + fib(x - 2)

P40 7210?取區(qū)間中點1

start = int(input())
end = int(input())
middle = (start + end) / 2
print(format(middle, '.1f'))

P40?7216?賬號登錄程序

num = 0
pw = input()
while pw != "Python@16":
    num = num + 1
    if num < 5:
        print("The password is wrong. Try again!")
        pw = input()
    else:
        print("Input the password more than 5 times. Please reset your password by email!")
        break
if pw == "Python@16":
    print("Login successful!")

P41?7217?洗衣機洗衣算法---是否加水

n = float(input())
if n >= 50:
    print("Break")
else:
    print("Continue")

P41 7218?洗衣機洗衣算法---漂洗是否加水

n = int(input())
for i in range(n):
    input_list = input().split()
    num, quantity_of_water = int(input_list[0]), float(input_list[1])
    flag = False
    if quantity_of_water < 50:
        if num < 3:
            print("Water")
            flag = True
    if not flag:
        print("No")

P42?7219?智能空調算法--壓縮機運行

t = float(input())
if t <= 26:
    print("pause")
else:
    print("run")

P46?6833?停車場車位探測中的算法

x = int(input())
if x == 0:
    print("green, parking space is empty")
else:
    print("red, parking space is occupied")

P47?7220?智能停車場引導系統(tǒng)

n = int(input())
park = []
for i in range(n):
    park.append(int(input()))
count = 0
for x in park:
    if x == 0:
        count = count + 1
print(count)

P47?7135?最大公約數之輾轉相除法

同上,重復

P47 7134?最大公約數之更相減損術比較

同上,重復

P48?7226?電飯鍋燒飯--溫度控制

n = int(input())
flag = False
for i in range(n):
    temp = float(input())
    if temp < 103 and not flag:
        print("Continue")
    elif not flag:
        print("Break")
        flag = True
2.2 算法的控制結構

P50?6834?一元二次方程是否有實數根

a = float(input())
b = float(input())
c = float(input())
disc = b ** 2 - 4 * a * c
if disc >= 0:
    print("exist")
else:
    print("not exist")

P51?6835?超市收銀系統(tǒng)

n = int(input())
s = 0
for i in range(n):
    m = float(input())
    s += m
# print(format(s, '.2f'))
print("%.2f" % s)

P52?7228?智能農業(yè)大棚2

n = int(input())
for i in range(n):
    temp = float(input())
    if temp > 28+40:
        print("Start up cooling system")
    elif temp < 28-18:
        print("Start up heating system")
2.3 用算法解決問題的過程

P54?6741?動動有獎

n = int(input())
s, c = 0, 0
for i in range(n):
    x, f = map(int, input().split())
    if f == 1:
        if x >= 1000:
            t = 0.3+((x-1000)//2000)*0.1
            if t > 3:
                t = 3
        else:
            t = 0
        c = c+1
        if c >= 4:
            s = s+2*t
        else:
            s = s+t
    else:
        c = 0
print("%.1f"%s)

P58?7229?3個數排序簡單版

a = int(input())
b = int(input())
c = int(input())
s = a + b + c
ma = max(a, max(b, c))
mi = min(a, min(b, c))
mid = s - ma - mi
print(mi, mid, ma)

或:

a = int(input())
b = int(input())
c = int(input())
s = a + b + c
ma = max(a, max(b, c))
mi = min(a, min(b, c))
mid = s - ma - mi
print(mi, mid, ma)

P58 6836?新年大合唱比賽得分

lista = []
s = 0
for i in range(10):
    lista.append(float(input()))
    s += lista[i]
s = (s - max(lista) - min(lista)) / 8
print(format(s, '.2f'))
# print("%.2f" % s)

第三章 算法的程序實現

3.1 用計算機編程解決問題的一般過程

P67?1530?哥德巴赫猜想

def is_prime(n):
    if n == 1:
        return False
    k = int(n ** 0.5)
    for x in range(3, k+1, 2):
        if n % x == 0:
            return False
    return True


def is3same(a, b, c):
    return (a == b) and (b == c)


def is2same(a, b, c):
    if a == b and a != c:
        return True
    if a == c and a != b:
        return True
    if b == c and b != a:
        return True


n = int(input())
while n != 0:
    a = b = r = 0
    for i in range(3, n, 2):
        if is_prime(i):
            for j in range(3, n - i, 2):
                if is_prime(j) and is_prime(n-i-j):
                    if is3same(i, j, n-i-j):
                        r = r + 1
                    elif is2same(i, j, n-i-j):
                        a = a + 1
                    else:
                        b = b + 1
    r += a//3 + b//6
    if r != 0:
        print(r)
    else:
        print("Error")
    n = int(input())

P67 4865?統(tǒng)計單詞數

import re

while True:
    try:
        find = input().lower()
        inp = input().lower()
        cmp = re.compile('\\b' + find + '\\b')
        res = re.search(cmp, inp)
        if res is None:
            print(-1)
        else:
            ls = inp.split(" ")
            print("{0} {1}".format(ls.count(find), res.span()[0]))
    except:
        break

P69?1452?C語言實驗題――Hello World

print("Hello, World!")

P69 1001?整數求和

a=input()
b=input()
print(int(a)+int(b))
3.2 Python語言程序設計

P77?7231?子串問題1

a = input()
b = input()
if b in a:
    print("exist")
else:
    print("not exist")

P73?7165?列表索引問題簡單版1

a=input()
print(a[4])

P73 7169?字符串切片1

lista = input()
print(lista[1:4])

P77?6837?區(qū)間測速

t = float(input())
t /= 3600
v = 25 / t
if v > 100:
    print("speeding")
else:
    print("normal")

P80?7236?區(qū)間測速加強版

t = float(input())
t = t / 3600
v = 25 / t
if v > 100:
    if v < 120:
        print(format(v, '.1f'))
        print("Exceeding the specified speed and less than 20%")
    elif v < 150:
        print(format(v, '.1f'))
        print("Exceeding the specified speed by more than 20% and less than 50%")
    elif v < 170:
        print(format(v, '.1f'))
        print("Exceeding the specified speed by more than 50% and less than 70%")
    else:
        print(format(v, '.1f'))
        print("Exceeding the specified speed by more than 70%")
else:
    print(format(v, '.1f'))
    print("normal")

P81?6838?熱量消耗

a = input().split()
b = []
for x in a:
    b.append(int(x))
print(sum(b))

P83?7191?猜數游戲2

while True:
    a = int(input())
    if a == 23:
        print("right")
        break
    elif a > 23:
        print("bigger")
    else:
        print("smaller")

P84?6839?求地的面積

def area(a, b, c):
    p = (a + b + c) / 2
    s = (p * (p - a) * (p - b) * (p - c)) ** 0.5
    return s


l1 = float(input())
l2 = float(input())
l3 = float(input())
l4 = float(input())
l5 = float(input())

y1 = area(l1, l2, l5)
y2 = area(l3, l4, l5)
y = y1 + y2
print(format(y, '.2f'))

P85?6781?算數平方根

n = float(input())
#print( format( n ** 0.5, '.2f'))
print('%.2f' % ( n ** 0.5))

P86?7237?圓的面積加強版

import math
n = float(input())
s = math.pi * (n ** 2)
print(format(s, '.8f'))

P89?6810?兩個數較大

a=int(input())
b=int(input())
if a >= b:
    print(a)
else:
    print(b)

P89 5908?三個數的最大值

a = int(input())
b = int(input())
c = int(input())
# 打擂臺算法
imax = a
if b > imax:
    imax = b
if c > imax:
    imax = c
print(imax)

或:

a = int(input())
b = int(input())
c = int(input())
imax = max(a, max(b, c))
print(imax)

P89 1459?求最大值

n = int(input())
lista = []
for i in range(n):
    lista.append(int(input()))
print(max(lista))

P89 6840?身份證號碼

s = input()
print("{}-{}-{}".format(s[6:10], s[10:12], s[12:14]))
if int(s[-2]) % 2 == 0:
    print("female")
else:
    print("male")

P89 5953?求1到n中的偶數的和

s = input()
print("{}-{}-{}".format(s[6:10], s[10:12], s[12:14]))
if int(s[-2]) % 2 == 0:
    print("female")
else:
    print("male")

P89 6841?檢測字符串是否全是數字

s = input()
if s.isdigit():
    print(1)
else:
    print(0)
3.3 簡單算法及其程序實現

P91?7238?答題卡填涂--判斷RGB顏色

r = int(input())
g = int(input())
b = int(input())
gray = 0.299 * r + 0.587 * g + 0.1144 * b
if gray < 132:
    print("Black")
else:
    print("White")

P91?6842?整數的因子

n = int(input())
for i in range(1, n+1):
    if n % i == 0:
        print(i)

P92?7240?答題卡填涂--像素填涂個數

n = int(input())
count = 0
for i in range(n):
    a = float(input())
    if a < 132:
        count = count + 1
print(count)

P93?7241?答題卡填涂--信息點是否填涂判斷

count = 0
for i in range(300):
    R, G, B = map(int, input().split())
    gray = 0.299 * R + 0.587 * G + 0.1144 * B
    if gray < 132:
        count = count + 1
prob = count / 300
if prob >= 0.64:
    print("True")
else:
    print("False")

P100?6843?城市人口問題

x = float(input())
y = float(input())
year = 0
while x < y:
    x *= 1.012
    year = year + 1
print(year)

P100 6844?設備價格問題

m = 120
n = int(input())
for i in range(2, n+1):
    if i < 7:
        m -= 10
    else:
        m *= 0.75
print(format(m, '.2f'))

P100 6845?星期幾問題

y = int(input())
m = int(input())
d = int(input())
if m == 1:
    m = 13
    y -= 1
if m == 2:
    m = 14
    y -= 1
c = y // 100
y %= 100
w = y + int(y/4) + int(c/4) - 2 * c + int(26 * (m + 1)/10) + d - 1
w %= 7
if w == 0:
    print("Sunday")
elif w == 1:
    print("Monday")
elif w == 2:
    print("Tuesday")
elif w == 3:
    print("Wednesday")
elif w == 4:
    print("Thursday")
elif w == 5:
    print("Friday")
elif w == 6:
    print("Saturday")

P100 6846?小z的簡單加密

s = input()
b = []
for x in s:
    if x == 'a':
        x = 'z'
    else:
        x = chr(ord(x) - 1)
    b.append(x)
for x in b:
    print(x, end='')

P100 6847?韓信點兵

for i in range(1000, 1101):
    if i % 3 == 2 and i % 5 == 4 and i % 7 == 6:
        print(i)

P100 7194?百錢買百雞 簡單版

for i in range(21):
    for j in range(34):
        k = 100 - i - j
        if 5 * i + 3 * j + k / 3 == 100:
            print(i, j, k)

P101?6848?籃球得分預測問題

a, b = map(int, input().split(':'))
team = input()
t = int(input())
if a > b:
    a -= 3
    if team == 'A':
        a += 0.5
    else:
        a -= 0.5
    if a < 0:
        a = 0
    a = a ** 2
    if a > t:
        team = "A"
    else:
        team = "B"
else:
    b -= 3
    if team == 'B':
        b += 0.5
    else:
        b -= 0.5
    if b < 0:
        b = 0
    b = b ** 2
    if b > t:
        team = "B"
    else:
        team = "A"
print(team)

P101 6862?反彈高度

n = int(input())
h = 100
s = 0
for i in range(1, n+1):
    s += h*2
    h /= 2
s -= 100
print(format(s, '.2f'))
print(format(h, '.2f'))

P101 5006?害死人不償命的(3n+1)猜想

n = int(input())
step = 0
while n > 1:
    if n % 2 == 0:
        n /= 2
    else:
        n = (3 * n + 1) / 2
    step = step + 1
print(step)

P101 7242?成績等級統(tǒng)計

a = b = c = d = e = 0
for i in range(30):
    n = int(input())
    if 90 <= n <= 100:
        a = a + 1
    elif 80 <= n <= 89:
        b = b + 1
    elif 70 <= n <= 79:
        c = c + 1
    elif 60 <= n <= 69:
        d = d + 1
    else:
        e = e + 1
print("A:", a)
print("B:", b)
print("C:", c)
print("D:", d)
print("E:", e)

P101 1499?C語言實驗題――雞兔同籠

n,m=map(int,input().split())
y=m//2-n
x=n-y
print(x,y)

P104?6849?圖書優(yōu)惠問題

n = int(input())
a = n // 300
b = (n % 300) // 200
c = ((n % 300) % 200) // 100
print(n - (a * 120 + b * 70 + c * 30))

P104 1476?C語言實驗題――圓周率

n = int(input())
pi = 0
for i in range(1, n+1):
    pi += 1 / (4 * i - 3) - 1 / (4 * i - 1)
pi *= 4
print(format(pi, '.5f'))

P104 7195?利用蒙特卡羅方法計算π的值

import random
num = int(input())
point = 0
for i in range(num):
    x = random.random()
    y = random.random()
    if (x * x + y * y) <= 1:
        point = point + 1
print((point / num) * 4)

第四章 數據處理與應用

4.1 常用表格數據的處理
4.2 大數據處理
4.3 大數據典型應用

第五章 人工智能及應用

5.1 人工智能的產生與發(fā)展
5.2 人工智能的應用
5.3 人工智能對社會的影響

必修2 信息系統(tǒng)與社會

第一章 信息系統(tǒng)概述

1.1 信息技術與信息系統(tǒng)
1.2 信息系統(tǒng)的組成與功能
1.3 信息系統(tǒng)的應用
1.4 信息社會及其發(fā)展

第二章 信息系統(tǒng)的支撐技術

2.1 計算機硬件
2.2 計算機軟件
2.3 移動終端
2.4 傳感與控制
2.5 網絡系統(tǒng)
2.6 網絡應用軟件開發(fā)

第三章 信息系統(tǒng)安全

3.1 信息安全與保護
3.2 信息系統(tǒng)安全與防護

P106?6850?凱撒密碼加密

def change(code, key):
    if 'a' <= code <= 'z':
        m = ord(code) - ord('a') + key
        return chr((m + 26) % 26 + ord('a'))
    if 'A' <= code <= 'Z':
        m = ord(code) - ord('A') + key
        return chr((m + 26) % 26 + ord('A'))
    return code


s = input()
n = int(input())
a = []
for x in s:
    a.append(change(x, n))
for i in range(len(a)):
    if i != len(a) - 1:
        print(a[i], end='')
    else:
        print(a[i])

P106 6851?凱撒密碼解密

def change(code, key):
    if 'a' <= code <= 'z':
        m = ord(code) - ord('a') - key
        return chr((m + 26) % 26 + ord('a'))
    if 'A' <= code <= 'Z':
        m = ord(code) - ord('A') - key
        return chr((m + 26) % 26 + ord('A'))
    return code


s = input()
n = int(input())
a = []
for x in s:
    a.append(change(x, n))
for i in range(len(a)):
    if i != len(a) - 1:
        print(a[i], end='')
    else:
        print(a[i])

P116?6875?簡單換位密碼1

s = input()
print(s[::-1])

P116 6876?簡單換位密碼2

s = list(input())
n = int(input())
for i in range(n):
    x = s.pop(0)
    s.append(x)
for i in range(len(s)):
    if i != len(s)-1:
        print(s[i], end="")
    else:
        print(s[i])

P117?6877?簡單異或密碼

始終是Running Error,不知道為什么?

以下代碼Running Error,不知道為什么?
s = input()
m = bin(int(input()))
m = m[2:]
lst1 = []
for i in range(len(s)):
    x = bin(ord(s[i]))
    x = x[2:]
    n = len(x)
    y = '0' * (8 - n) + x
    lst2 = []
    for j in range(8):
        lst2.append(int(y[j]) ^ int(m[j]))
    lst1.append(lst2)
for i in range(len(lst1)):
    for j in range(len(lst1[i])):
        print(str(lst1[i][j]), end='')
    print('', end=' ')

第四章 信息系統(tǒng)

4.1 搭建信息系統(tǒng)的前期準備
4.2 搭建信息系統(tǒng)
4.3 完善信息系統(tǒng)

必修1第四、五章及必修2的編程為具體應用,平臺無法提供測試同義詞。

到了這里,關于福建高中信息技術會考操作題視頻的文章就介紹完了。如果您還想了解更多內容,請在右上角搜索TOY模板網以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網!

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。如若轉載,請注明出處: 如若內容造成侵權/違法違規(guī)/事實不符,請點擊違法舉報進行投訴反饋,一經查實,立即刪除!

領支付寶紅包贊助服務器費用

相關文章

  • Java基礎:數據類型會考什么?

    Java基礎:數據類型會考什么?

    本文列舉一些關于Java基礎的數據類型相關考點,方便以后復習查看 Java 中的哪幾種基本數據類型了解么?它們的默認值和占用空間大小知道不? 說說這八種數據類型對應的包裝類型 基本類型和包裝類型的區(qū)別? int 和 Integer 的區(qū)別 為什么要有包裝類型 ?? 包裝類型的緩存機制了

    2023年04月18日
    瀏覽(18)
  • 設計模式學習(一)單例模式補充——單例模式析構

    設計模式學習(一)單例模式補充——單例模式析構

    目錄 前言 無法調用析構函數的原因 改進方法 內嵌回收類 智能指針 局部靜態(tài)變量 參考文章 在《單例模式學習》中提到了,在單例對象是通過 new 動態(tài)分配在堆上的情況下,當程序退出時,不會通過C++的RAII機制自動調用其析構函數。本文討論一下這種現象的原因以及

    2024年03月19日
    瀏覽(34)
  • Java單例模式詳解--七種單例模式實現+單例安全+實際應用場景

    保證了一個類只有一個實例,并且提供了一個全局訪問點。單例模式的主要作用是節(jié)省公共資源,方便控制,避免多個實例造成的問題。 實現單例模式的三點: 私有構造函數 私有靜態(tài)變量維護對象實例 公有靜態(tài)方法提供獲取實例對象 七種單例模式實現 1.靜態(tài)類:第一次運

    2024年02月04日
    瀏覽(22)
  • 【地鐵上的設計模式】--創(chuàng)建型模式:單例模式(五)--枚舉單例

    什么是枚舉單例 枚舉單例是指使用枚舉類型來實現單例模式,它是單例模式中最簡單、最安全的一種實現方式。在枚舉類型中定義的枚舉值只會被實例化一次,即保證了全局唯一的實例,而且實現簡單、線程安全、防止反射攻擊、支持序列化等。 如何實現枚舉單例 實現枚舉

    2023年04月25日
    瀏覽(20)
  • Python如何操作RabbitMQ實現fanout發(fā)布訂閱模式?有錄播直播私教課視頻教程

    生產者 消費者 生產者 消費者 生產者 消費者

    2024年01月17日
    瀏覽(21)
  • JavaEE 初階篇-深入了解單例模式(經典單例模式:餓漢模式、懶漢模式)

    JavaEE 初階篇-深入了解單例模式(經典單例模式:餓漢模式、懶漢模式)

    ??博客主頁:?【 小扳_-CSDN博客】 ?感謝大家點贊??收藏?評論? 文章目錄 ? ? ? ? 1.0 單例模式的概述 ? ? ? ? 2.0 單例模式 - 餓漢式單例 ? ? ? ? 2.1 關于餓漢式單例的線程安全問題 ? ? ? ? 3.0 單例模式 - 懶漢式單例 ? ? ? ? 3.1 關于懶漢式單例的線程安全問題 ? ? ?

    2024年04月15日
    瀏覽(28)
  • 單例模式有幾種寫法?【如何實現單例模式?】

    專注 效率 記憶 預習 筆記 復習 做題 歡迎觀看我的博客,如有問題交流,歡迎評論區(qū)留言,一定盡快回復?。ù蠹铱梢匀タ次业膶?,是所有文章的目錄) 文章字體風格: 紅色文字表示:重難點★? 藍色文字表示:思路以及想法★? 如果大家覺得有幫助的話,感謝大家?guī)?/p>

    2024年02月07日
    瀏覽(21)
  • 設計模式——C++11實現單例模式(餓漢模式、懶漢模式),與單例的進程

    本文將介紹單例模式,使用C++11實現多個版本的單例模式,分析各自的優(yōu)缺點。最后提及如何實現一個單例的進程。 單例模式屬于創(chuàng)建型模式,提供了一種創(chuàng)建對象的方式。 單例模式確保一個類只有一個實例。通過一個類統(tǒng)一地訪問這個實例。 思想:將構造函數設置為私有

    2024年02月09日
    瀏覽(22)
  • 【設計模式】單例模式、“多例模式”的實現以及對單例的一些思考

    【設計模式】單例模式、“多例模式”的實現以及對單例的一些思考

    單例模式是設計模式中最簡單的一種,對于很多人來說,單例模式也是其接觸的第一種設計模式,當然,我也不例外。這種設計模式在學習、面試、工作的過程中廣泛傳播,相信不少人在面試時遇到過這樣的問題:“說說你最熟悉的集中設計模式”,第一個脫口而出的就是單

    2024年02月07日
    瀏覽(26)
  • 【設計模式學習1】什么是單例模式?單例模式的幾種實現。

    【設計模式學習1】什么是單例模式?單例模式的幾種實現。

    單例模式是在內存中只創(chuàng)建一個對象的模式,它保證一個類只有一個實例。 如上圖所示,多線程情況下,在時刻T,線程A和線程B都判斷single為null,從而進入if代碼塊中都執(zhí)行了new Single()的操作創(chuàng)建了兩個對象,就和我們當初的單例初衷相悖而行。 1、第一次判空目的:為了縮

    2024年02月15日
    瀏覽(21)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領取紅包,優(yōu)惠每天領

二維碼1

領取紅包

二維碼2

領紅包