#Python实战计划#1.1练习项目

2016-08-25  本文已影响0人  linacqu

首先,为上课打基础,我按照教程指引,学习了《编程小白的第一本 Python 入门书》,感觉收获很大,字符串、函数、循环与判断、数据结构list,dict,tuple,set、到最后一章的类,这些概念一直在脑子里糊里糊涂的,一下子好像明白了一些,作业都认认真真跟着做了。就像书里介绍,编程就是拆分清楚一件事情的逻辑关系,分成一个一个block,对于性子急躁,急于求成的我来说,是需要长期的锻炼的,学习Python是需要一直一直坚持的事情。

自己学完第一节后编写的网页成果:

image.png
我的代码:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>The blah</title>
<link rel="stylesheet" type="text/css" href="homework.css">
</head>
<body>
    <div class="header">
        <img src="images/blah.png">
        <ul class="nav">
        <li><a href="a">Home</a></li>
        <li><a href="a">Site</a></li>
        <li><a href="a">Other</a></li>
        </ul>
    </div>
    <div class="main-content">
        <h2>The Beach</h2>
        <hr />
        <ul class="photos">
            <li><img src="images/0001.jpg" width="150" height="150"></li>
            <li><img src="images/0003.jpg" width="150" height="150"></li>
            <li><img src="images/0004.jpg" width="150" height="150"></li>
        </ul>
        <p>I would fain say something, not so much concerning the Chinese and Sandwich Islanders as you who read these pages, who are said to live in New England; something about your condition,
        especially your outward condition or circumstances in this world, in this town, what it is, whether it is necessary that it be as bad as it is, whether it cannot be improved as well as not.
        I have travelled a good deal in Concord; and everywhere, in shops, and offices, and fields, the inhabitants have appeared to me to be doing penance in a thousand remarkable ways. </p>
    </div>
    <div class="footer">
        <p>© Mugglecoding</p>
    </div>
</body>
</html>

我的总结:

  1. 网页通常由HTML、CSS样式构成。
  1. 掌握了Markdown语言的常用方法,如引用、标题、列表、加粗/斜体、代码引用、链接和图片等。
上一篇下一篇

猜你喜欢

热点阅读