在$ viewpost中,您可以看到我有$ download,但是如您所见,屏幕在href中没有显示斜线。这是我的问题 https://i.imgur.com/47kKzgM.png <----我的问题
我试图在变量中给出一个链接。
$view_post .= "
<div class='col-12 block'>
<div class='inner viewpost' >
<div class='title'>$title</div>
<div class='content'>$content</div>
<div class='category'>Category: $category</div>
<div style='font-size: 12px;>$date</div>
<a href='https://i.imgur.com/nmRgoAn.png'>$download</a>
</div>
</div>";
在正文中给它一个<? echo $view _post; ?>
典型的引导程序错误... https://i.imgur.com/IyZph0o.png
答案 0 :(得分:-1)
对不起,您无法更新代码。
from microbit import *
def light ():
row = 0
while row <= 4:
if row % 2 == 0: #light r1, r3 and r5 left to right
count = 0
while count < 5:
display.set_pixel(count, row, 6)
sleep(100)
count += 1
count = 0
row += 1
if row % 2 != 0: #light r2 and r4 right to left
count1 = 4
while count1 >= 0:
display.set_pixel(count1, row, 6)
sleep(100)
count1 -= 1
count1 = 4
row += 1
while True:
if button_a.was_pressed():
display.show(light())
您的链接将立即显示。