- 博客(3)
- 收藏
- 关注
原创 练习代码(3)
3.1import urllib.request response = urllib.request.urlopen('http://placekitten.com/g/500/600') cat_img =response.read() with open('cat_500_600','wb') as f: f.write(cat_img) 3.2def squartRootBi(x
2017-02-02 22:20:40 401 1
原创 练习代码(2)
2.1import easygui easygui.msgbox("hello,world!") 2.2import easygui as g import sys while 1: g.msgbox("welcome") msg =("Do you hunger for knowledge?") title = "game"
2017-02-02 22:13:06 296
原创 练习代码(1)
1.1print("猜猜我是谁?") tmp = input("猜猜我是谁?:") guess = int(tmp) if guess == 520: print("you're right") else: print("you're wrong") print("game over")1.2import random secret = random.randint(1,5) pr
2017-02-02 22:08:04 463
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人