摘要:
CSS的定位机制 1.普通流(标准流) 默认状态,元素自动从左往右,从上往下排列 块元素的特征: 独占一行 可以设置宽高 如果不设置宽度,宽度默认为容器的100% 常见的块元素:div p h1-h6 ul ol li dl dt d 行内元素的特征: 与其他元素同行显示 不可以设置宽和高 宽和高就 阅读全文
摘要:
Reversing a List If you have time, you can try to write a function which will reverse a list recursively, according to thefollowing algorithm:1. rever 阅读全文
摘要:
Programming 1.Analysing a Text File Look at the file xian_info.txt which is like this: First line is a country. Second line integer is a population. T 阅读全文
摘要:
Programming Create a Class Student which should have the following information:Parameters passed to __init__ when an instance of the class is created: 阅读全文
摘要:
#5.1 major = 'Software Engineering' print("Is major =='Software Engineering'? I predict True.") print(major=='Software Engineering') print("Is major =='Software Engineering'? I predict False.") print( 阅读全文
摘要:
#4.1 pizzas = ['KFC','MDL','DKS'] '''1''' for pizza in pizzas: print(pizza); '''2''' for pizza in pizzas: print("I like "+ pizza +" pizza!") '''3''' print("My favourite pizza is K 阅读全文
摘要:
#2.1 print("Hello world!"); #2.2 message="Hello,Python!"; print(message); #2.3 name="tian jiale"; print(name+",would you like to learn some Python today?"); #2.4 #小写 print(name.lower()+",would you lik 阅读全文