Discuss / Python / 测试代码

测试代码

Topic source

久疤_796

#1 Created at ... [Delete] [Delete and Lock User]
>>> class test(object):
    num = 10


>>> n1 = test()
>>> n2 = test()
>>> n1.num
10
>>> n2.num
10
>>> n1.num = 15
>>> n2.num
10
>>> n1.num
15
>>> test.num = 20
>>> n2.num
20
>>> n1.num
15
>>>

给大家说个小诀窍: 键盘写~的那个键,在英文状态下,按2下,写下你的内容,再按2下结束,这之间的内容就是以字符串形式显示(红色)。一下也是可以的 如果是前后各3下,那么之间的内容填写代码就规范了。 如: ``` code ``` 显示的就是:

code

代码的话记得换行才有效果

`` 早已会!^_^

``

珐瑞斯特

#3 Created at ... [Delete] [Delete and Lock User]
> > >echo ‘厉害’
666

测试下,效果还不错~~~

print('Hello world!!!')

这是Markdown的语法吧

桑桑喵喵i

#6 Created at ... [Delete] [Delete and Lock User]

666

蟹蟹这位大兄弟~

我来试试

print('hello world!') baidu

恢复模块中好像就用的markdown语法

又get新技能了

赶紧去下了个mardownpad玩了下,还挺过瘾的哈哈

python学习首页

是这样的吗


Reply