自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(38)
  • 收藏
  • 关注

转载 第三章 习题-编程题

Private Sub Command1_Click()Text1.Visible = FalseEnd SubPrivate Sub Command2_Click()Text1.Visible = TrueText1.Text = "VB程序设计"End SubPrivate Sub Form_Load()End Sub...

2019-07-13 09:04:00 256

转载 第三章、简单程序设计

Private Sub Command1_Click() Text1.Text = "欢迎使用Visual Basic 6.0中文版" Text1.FontSize = 20End SubPrivate Sub Command2_Click() Text1.Text = ""End SubPrivate Sub Command3_...

2019-07-12 07:08:00 123

转载 Python自学:第四章 复制列表(1)

# -*- coding: GBK -*-my_foods = ['pizza', 'falafel', 'carrot cake']friend_foods = my_foods[:]print("My favorite foods are:")print(my_foods)print("\nMy friend's favorite foods ar...

2019-05-20 13:55:00 105

转载 Python自学:第四章 遍历切片

# -*- coding: GBK -*-players = ['charles', 'martina', 'michael', 'florence', 'eli']print("Here are the first three players on my team:")for player in players[:3]: print (player.t...

2019-05-17 08:15:00 110

转载 Python自学:第四章 切片

# -*- coding: GBK -*-players = ['charles', 'martina', 'michael', 'florence', 'eli']print(players[0:3])输出为:['charles', 'martina', 'michael']2、中间提取# -*- coding: GBK -*-p...

2019-05-16 09:57:00 85

转载 Python自学:第五章 动手试一试 4-3

# -*- coding: GBK -*-numbers = ["1",'2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20']for number in numbers: print(number)输出为:123...

2019-05-14 08:11:00 117

转载 Python自学:第五章 列表解析

# -*- coding: GBK -*-squares = [value**2 for value in range(1,11)]print(squares)输出为:[1, 4, 9, 16, 25, 36, 49, 64, 81, 100]转载于:https://www.cnblogs.com/zhouxiin/p/10854781.ht...

2019-05-13 08:45:00 76

转载 Python自学:第五章 对数字列表执行简单的统计计算

>>>digits = [1,2,3,4,5,6,7,8,9,0]>>>mid(digits)0>>>max(digits)9>>>sum(digits)45转载于:https://www.cnblogs.com/zhouxiin/p/10851204.html

2019-05-12 09:53:00 294

转载 Python自学:第五章 使用range( )创建数字列表

# -*- coding: GBK -*-number = list(range(1,6))print(number)输出为:[1, 2, 3, 4, 5]2、# -*- coding: GBK -*-even_numbers = list(range(2,11,2))print(even_numbers)输出为:...

2019-05-09 07:56:00 831

转载 Python自学:第五章 使用函数range( )

# -*- coding: GBK -*-for value in range(1,5): print(value)输出为:1234转载于:https://www.cnblogs.com/zhouxiin/p/10829835.html

2019-05-08 09:12:00 83

转载 Python自学:第四章 在for循环结束后执行一些操作

# -*- coding: GBK -*-magicians = ['alice', 'david', 'carolina']for magician in magicians: print(magician.title() + ", that was a great trick!") print("I can't wait to seee your ...

2019-05-07 08:25:00 965

转载 Python自学:第四章 在for循环中执行更多操作(2)

# -*- coding: GBK -*-magicians = ['alice', 'david', 'carolina']for magician in magicians: print(magician.title() + ", that was a great trick!") print("I can't wait to seee your ...

2019-05-06 09:06:00 135

转载 Python自学:第四章 在for循环中执行更多操作(1)

# -*- coding: GBK -*-magicians = ['alice', 'david', 'carolina']for magician in magicians: print(magician.title() + ", that was a great trick!")输出为:Alice, that was a great tri...

2019-05-05 09:19:00 149

转载 第四章 遍历整个列表

# -*- coding: GBK -*-magicians = ['alice', 'david', 'carolina']for magician in magicians: print(magician)输出为:alicedavidcarolina转载于:https://www.cnblogs.com/zhouxiin...

2019-04-28 11:18:00 133

转载 Python自学:第三章 确定列表长度

>>> cars = ["bmw", "audi", "toyota", "subaru"]>>> len(cars)4转载于:https://www.cnblogs.com/zhouxiin/p/10778066.html

2019-04-27 11:07:00 155

转载 Python自学:第三章 倒着打印列表

# -*- coding: GBK -*-#reverse: 相反的cars = ["bmw", "audi", "toyota", "subaru"]print(cars)cars.reverse()print(cars)输出为:['bmw', 'audi', 'toyota', 'subaru']['subaru', 'toyota...

2019-04-25 09:01:00 141

转载 Python自学:第三章 使用函数sort( )对列表进行临时排序

# -*- coding: GBK -*-cars = ["bmw", "audi", "toyota", "subaru"]print("这是以前的列表:")print(cars)print("\n这是排序后的列表:")print(sorted(cars))print("\n再次核对是否改变以前的列表:")print(cars)输...

2019-04-24 08:16:00 125

转载 Python自学:第三章 使用方法sort( )对列表进行永久性排序

cars = ["bmw", "audi", "toyota", "subaru"]cars.sort()print(cars)输出为:['audi', 'bmw', 'subaru', 'toyota']反向排序:cars = ["bmw", "audi", "toyota", "subaru"]cars.sort(reverse ...

2019-04-23 11:08:00 104

转载 Python自学:第三章 动手试一试 3-4、3-5

# -*- coding: GBK -*-liebiao = ["zhang", "li", "wang", "zhou"]print("wo yao qing :" + liebiao[0] + "、" + liebiao[1] + "、" + liebiao[2] + "、" + liebiao[3]) 输出为:wo yao qing :zhang、l...

2019-04-18 15:35:00 147

转载 Python自学:第三章 根据值删除元素

motorcycles = ["honda", "yamaha", "suzuki", "ducati"]print(motorcycles)motorcycles.remove("ducati")print(motorcycles)输出为:['honda', 'yamaha', 'suzuki', 'ducati']['honda', 'yama...

2019-04-18 14:17:00 128

转载 Python自学:第三章 弹出列表中任何位置处的元素

motorcycles = ["honda", "yamaha", "suzuki"]first_owned = motorcycles.pop(0)print("The first motorcycle I owned was a " + first_owned.title() + ".")输出为:The first motorcycle I owned...

2019-04-18 11:22:00 282

转载 Python自学:第三章 使用方法pop()删除元素

motorcycle = ["honda", "yamaha", "suzuki"]last_owned = motorcycle.pop()print("The last motorcycle I owned was a " + last_owned.title() + ".")输出为:The last motorcycle I owned was a ...

2019-04-18 08:40:00 180

转载 Python自学:第三章 使用del语句删除元素

motorcycles = ["honda", "yamaha", "suzuki"]print(motorcycles)del motorcycles[1]print(motorcycles)输出为:['honda', 'yamaha', 'suzuki']['honda', 'suzuki']转载于:https://www.cnb...

2019-04-18 08:16:00 199

转载 Python自学:第三章 在列表末尾添加元素与在列表中插入元素

motorcycles = ['honda', 'yamaha' ,'suzuki']motorcycles.insert(0, "ducati")print(motorcycles)输出为:['ducati', 'honda', 'yamaha', 'suzuki']2:motorcycles = []motorcycles...

2019-04-17 14:21:00 1949

转载 Python自学:第三章 修改列表元素

motorcycles = ['honda', 'yamaha', 'suzuki']print(motorcycles)motorcycles[0] = 'ducati'print(motorcycles)输出为:['honda', 'yamaha', 'suzuki']['ducati', 'yamaha', 'suzuki']转...

2019-04-17 14:07:00 72

转载 Python自学:第三章 使用列表中的各个值

bicycles = ['trek','cannondale','redline','specialized']message = "My first bicycle was a " + bicycles[0].title() + "."print(message)输出为:My first bicycle was a Trek.转载于:htt...

2019-04-17 09:10:00 99

转载 Python自学:第三章 索引从0开始而不是从1

#返回最后一个,和倒数第二个元素bicycles = ['trek','cannondale','redline','specialized']print(bicycles[-1])print(bicycles[-2])输出为:specializedredline转载于:https://www.cnblogs.com/zhouxiin/p...

2019-04-17 08:41:00 187

转载 Python自学:第三章 访问列表元素

#输出并首字母大写bicycles = ['trek','cannondale','redline','specialized']print(bicycles[0].title())输出为:Trek转载于:https://www.cnblogs.com/zhouxiin/p/10721308.html...

2019-04-17 08:34:00 90

转载 Python自学:第二章 Python之禅

>>print import《Python之禅》,提姆·彼得斯著美胜于丑。显式优于隐式。简单胜于复杂。复杂总比复杂好。平的比嵌套的好。稀疏胜于稠密。可读性计数。特殊情况不足以打破规则。尽管实用性胜过纯洁性。错误永远不会悄悄地过去。除非明确沉默。面对歧义,拒绝猜测...

2019-04-11 18:39:00 98

转载 Python自学:第二章 注释

#向大家问好print("Hello Python People")输出为Hello Python People转载于:https://www.cnblogs.com/zhouxiin/p/10691551.html

2019-04-11 18:33:00 59

转载 Python自学:第二章 动手试一试

print(1 + 7)print(16 - 8)print(2 * 4)print(8 / 1)输出为:8888.0message = "20160925"print("I like:" + message)输出为:I like:20160925转载于:https://www.cnblogs...

2019-04-06 08:53:00 97

转载 Python自学:第二章 使用函数str( )避免类型错误

age = 23message = "Happy " + str(age) + "rd Birthday"print(message)输出位Happy 23rd Birthday转载于:https://www.cnblogs.com/zhouxiin/p/10660773.html

2019-04-06 08:37:00 214

转载 Python自学:第二章 浮点数

>>>0.1 + 0.10.2>>>0.2 + 0.20.4>>>2 * 0.10.2>>>2 * 0.20.4转载于:https://www.cnblogs.com/zhouxiin/p/10660769.html

2019-04-06 08:32:00 46

转载 Python自学:第二章 数字 整数

>>>2 + 35>>>3 - 21>>>3 * 26>>>3 / 21.5转载于:https://www.cnblogs.com/zhouxiin/p/10646720.html

2019-04-03 09:12:00 62

转载 Python自学:第二章 删除空白

lstrip:剔除开头空白strip:剔除两段空白rstrip:剔除末尾空白favorite: 最喜欢的>>>favorite_language = "Python">>>favorite_language.lstrip()"python ">>>favorite_language.strip()"...

2019-04-02 09:56:00 71

转载 Python自学:第二章 使用制表符或换行符来添加空白

print("Languages:\n\tPython\n\tC\n\tJava")输出为:Languages: Python C Java转载于:https://www.cnblogs.com/zhouxiin/p/10640511.html

2019-04-02 09:15:00 122

转载 Python自学:第二章 合并(拼接字符串)

1 first_name = "ada"2 last_name = "lovelace"3 full_name = first_name + " " + last_name4 message = "Hello," + full_name.title() + "!"5 6 print(message)输出为:Hello,Ada Lovelace!...

2019-04-01 15:38:00 83

转载 Python自学:第二章 修改字符串的大小写 titile.()、upper()、lower()

title.():首字母大写upper():全大写lower():全小写ada lovelace:人名,传控计算机创始人1 name = "ada lovelace"2 3 print(name.title())4 print(name.upper())5 print(name.lower())输出如下:Ada LovelaceAD...

2019-04-01 15:20:00 121

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除