各位在剛剛算法班的課堂上,應該都透過講師大大體驗到 sl
(Steam Locomotive) 的魅力了,相信大家都認為它是個好東西,
不過大家只看到在 Linux 上能享受 sl
,想必身為 Windows 使用者的你一定很不是滋味吧!
在這裡,我將告訴大家如何在 Windows 上也能讓 sl
帶給你滿滿的趣味,讓你不再因為打錯 ls
而感到難過。(才怪)
- MinGW (如果有 DevC++ 或 CodeBlocks 應該就有)
.css-1dbjc4n.r-1pi2tsx.r-1wtj0ep.r-1rnoaur.r-1pn2ns4.r-o96wvk div.css-1dbjc4n.r-xoduu5 > .css-901oao.css-16my406.r-poiln3.r-bcqeeo.r-qvutc0 > .css-901oao.css-16my406.r-poiln3.r-bcqeeo.r-qvutc0 { | |
/* display: none; */ | |
display: inline-block; | |
overflow: hidden; | |
text-indent: -9999px; | |
padding-top: 4px; | |
} | |
.css-1dbjc4n.r-1pi2tsx.r-1wtj0ep.r-1rnoaur.r-1pn2ns4.r-o96wvk div.css-1dbjc4n.r-xoduu5 > .css-901oao.css-16my406.r-poiln3.r-bcqeeo.r-qvutc0 > .css-901oao.css-16my406.r-poiln3.r-bcqeeo.r-qvutc0::before { | |
content: "推文"; |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>CodePen - Simple timeline with CSS</title> | |
<link rel="stylesheet" href="style.css"> | |
</head> | |
<body> | |
<div id="box"> | |
<div id="check-left-line"></div> |
n = int(input()) | |
dic = {} | |
for _ in range(n): | |
inputs = input().split() | |
op = int(inputs[0]) | |
if op == 1: | |
nickname = inputs[1] | |
if nickname in dic: | |
dic[nickname] += 1 | |
else: |
n = int(input()) | |
score = {} | |
for _ in range(n): | |
name, status = input().split() | |
if status == "AC": | |
if name in score: | |
score[name] += 1 | |
else: | |
score[name] = 1 | |
score_board = {} | |
while True: | |
k = input() | |
if k=="DATA_INPUT_END": | |
break | |
k = k.split() | |
score_board[k[0]] = k[1] | |
while True: | |
k = input() | |
if k=="END": |
from bs4 import BeautifulSoup as Soup | |
from requests import get as GET, post as POST | |
parse_cookie = lambda cookies: dict(map(lambda x: x.split('='), map(lambda x: x.replace(' ', ''), cookies.split(';')))) | |
COOKIE_STRING = "" | |
REQARGS = {'cookies': parse_cookie(COOKIE_STRING), 'headers': {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36'}} | |
class Post: | |
def react(self, name): |
import config | |
def getCellsAbsolutePosition(piece): | |
'''取得方塊當前所有方格的座標''' | |
return [(y + piece.y, x + piece.x) for y, x in piece.getCells()] | |
def fixPiece(shot, piece): | |
'''固定已落地的方塊,並且在main中自動切到下一個方塊''' |
import config | |
def getCellsAbsolutePosition(piece): | |
'''取得方塊當前所有方格的座標''' | |
return [(y + piece.y, x + piece.x) for y, x in piece.getCells()] | |
def printPiece(shot, piece): | |
print('目前方塊:', getCellsAbsolutePosition(piece)) | |
### Let's practice NOW! |