Các ý nghĩa ngữ pháp, mà đặc biệt là các mối quan hệ ngữ pháp giữa các từ, có thể được thể hiện bằng các hư từ. Đó chính là phương thức hư từ:
Tôi đang ăn cơm.
Tuy nhiên trong các ngôn ngữ biến hình (như tiếng Anh), hư từ có thể được sử
#!/usr/bin/env python3 | |
d = dict() | |
with open('bai3.inp') as f: | |
for i in f.readlines(): | |
for j in '.,;!?': | |
i = i.replace(j, ' ') | |
for j in i.split(): | |
d[j] = d.get(j, 0) + 1 | |
l = [(value, key) for (key, value) in d.items()] | |
l.sort(reverse=True) |
(* File name are supposed to be in upper case, but lower case names look more *mordern*. | |
* `buy.pas' run first, read input from `buy.inp', write to `buy.out' | |
* `set.pas' run next, read from `set.inp', write to `set.out' | |
* `play.pas' run last, read from `map.inp', write to `decision.out' | |
* (LMAO dunno how to sort files in Gist) | |
*) | |
var | |
f : text; | |
a : array[1..10] of qword; |
#!/usr/bin/env python3 | |
""" | |
This module contains code from | |
Think Python by Allen B. Downey | |
http://thinkpython.com/code/Card.py | |
Copyright 2016 Raphael McSinyx | |
Copyright 2012 Allen B. Downey | |
License: GNU GPLv3 http://www.gnu.org/licenses/gpl.html |
/* | |
* Trò chơi tìm chữ 3 <http://laptrinh.ntu.edu.vn/Problem/Details/5548> | |
* | |
* Copyright (C) 2016 Raphael McSinyx | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
* |
/* | |
* CIRCENUM - Số vòng <http://laptrinh.ntu.edu.vn/Problem/Details/5548> | |
* | |
* Copyright (C) 2016 Raphael McSinyx | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
* |
#!/usr/bin/env python3 | |
# Test the performance of XOR query | |
# Copyright (C) 2016 Raphael McSinyx | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# |
#!/usr/bin/env python3 | |
# VOA Learning English Broadcast Downloader | |
# Copyright (C) 2016,2017 Raphael McSinyx | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# |
/* | |
* A 80-char wide stylesheet with Tango color palette | |
* Copyright 2016 Raphael McSinyx | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
* | |
* This program is distributed in the hope that it will be useful, |
#!/usr/bin/env python3 | |
import curses | |
import json | |
import python_mpv_zws as mpv | |
with open('yt.json') as f: | |
DATA = json.load(f) | |
for i in DATA: |