Skip to content

Latest commit

 

History

History
91 lines (69 loc) · 2.77 KB

演示文档.md

File metadata and controls

91 lines (69 loc) · 2.77 KB

层级标题

一级标题

二级标题

三级标题

四级标题

五级标题
六级标题

表格

大纲级别 英,中字体 样式 中文字号 磅/pt
封面标题 Times New Roman,华文中宋 加粗 一号 26
封面表格内容 Times New Roman,思源宋体 加粗 四号 14
论文总标题 Times New Roman,华文中宋 加粗 二号 加粗 22
学校专业姓名 Times New Roman,楷体 四号 14
摘要/关键字 Times New Roman,楷体 加粗 小五 9
摘要/关键字的内容 Times New Roman,楷体 小五 9
一级标题/h1 Times New Roman,华文中宋 加粗 小三 15
二级标题/h2 Times New Roman,华文中宋 加粗 四号 14
三级标题/h3 Times New Roman,华文中宋 加粗 小四 12
四、五、六级标题/h4,h5,h6 Times New Roman,楷体 加粗 小四 12
正文 Times New Roman,思源宋体 无,行间距1.5倍 小四 12
表格标题 Times New Roman,楷体 加粗 小四 12
表格内容 Times New Roman,楷体 五号 10.5
引用块 Times New Roman,楷体 小四 12
行内代码/代码块 Cantarell,思源宋体 小四 12

项目列表

有序列表:

  1. 项目1
  2. 项目2
    1. 项目2.1
    2. 项目2.2
      1. 项目2.2.1
      2. 项目2.2.2

无序列表:

  • 项目1
  • 项目2
    • 项目2.1
    • 项目2.2
      • 项目2.2.1
      • 项目2.2.2

任务列表

  • 吃饭
  • 睡觉
  • 学习
  • 打豆豆

分割线


引用块

仰天大笑出门去,我辈岂是蓬蒿人。

代码块

import random
answer = random.sample(range(1,10),4)
print(answer)
a = b = n =0 #
while a!=4 :
    a = b = n = 0
    user = list(input('請輸入四個數字:'))
    for i in user:
      if int(user[n]) == answer[n]:
        a += 1
      else:
        if int(i) in answer:
          b += 1
      n += 1
    output = ','.join(user).replace(',','') #重點:將串列轉換為字串的方法
    print(f'{output}:{a}A{b}B')
print('答對了!')