- 博客(9)
- 收藏
- 关注
原创 Learn Python The Hard Way-ex10
这是我读《Learn Python The Hard Way》所做的练习,如果有错误请指正。 tabby_cat = "\tI'm tabbed in." persian_cat = "I'm split\non a line." backslash_cat = "I'm \\ a \\ cat." fat_cat = """ I'll do a list: \t* Cat food \t*
2018-01-11 22:43:53 159
原创 Learn Python The Hard Way-ex9
这是我读《Learn Python The Hard Way》所做的练习,如果有错误请指正。 days = "Mon Tue Wed Thu Fri Sat Sun" months = "Jan\nFeb\nMar\nApr\nMay\nJun\nJul\nAug" # print "Here are the days:", days print "Here ate the months:",
2018-01-10 22:10:53 120
原创 Learn Python The Hard Way-ex8
这是我读《Learn Python The Hard Way》所做的练习,如果有错误请指正。 #create a variable named "formatter" and assign in formatter = "%r %r %r %r" # display formatter and replace format character with # the thing behind "
2018-01-09 23:43:00 122
原创 Learn Python The Hard Way-ex7
这是我读《Learn Python The Hard Way》所做的练习,如果有错误请指正。 #display string print "Mary had a little lamb." #display string and replace format character with 'snow' print "Its fleece was white as %s." % 'snow
2018-01-08 23:48:57 122
原创 Learn Python The Hard Way-ex6
这是我读《Learn Python The Hard Way》所做的练习,如果有错误请指正。 #create a variable with string and use format character x = "There are %d types of people." % 10 binary = "binary" do_not = "don't" y = "Those who k
2018-01-07 23:35:40 141
转载 Learn Python The Hard Way-ex5
这是我读《Learn Python The Hard Way》所做的练习,如果有错误请指正。 name = 'Greensprin' age = 20 #it's a lie height = 162 #cm weight = 'it is a secret' eyes = 'brown' teeth = 'White' hair = 'Black' print "Let's talk
2018-01-04 21:10:58 166
原创 C语言(一)
/*所有学习C语言的人都是从这个程序开始的。*/ /*学习捷径只有一个字,那就是:写,写,写!*/ #include /*引用头文件*/ int main(){ /*main 函数*/ printf("Hello World!"); /*输出要显示的字符串*/ return 0;
2016-03-03 15:51:52 382
原创 lunix(二)
vim设置行号 :set numberwidth=1~9(1~9表示行号到顶行的距离,一般设置为1) 创建一个Makefile文件
2016-01-07 13:09:12 403
原创 lunix(一)
学习前的准备工作 (一) 在虚拟机上安装Linux系统。 虚拟机可以使用VMware Workstation,Linux系统推荐CentOS6.5。具体的安装过程参照百度经验。 (二)熟悉Linux系统的基本操作及常用命令。 ① 通过“Ctrl+Alt+F1~F6” 来切换图形界面到文本界面。图形界面会要求用户登录,登录
2015-12-10 18:39:59 1020
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人