New FAMILUG

The PyMiers

Showing posts with label list. Show all posts
Showing posts with label list. Show all posts

Saturday, 8 November 2014

[cmd] linux utilities - có gì cần thiết?

Một danh sách các command line tool tuyển chọn bởi FAMILUG.

Những dòng hiện "nothing appropriate." là nhưng built-in command của bash hoặc là các tool chưa cài đặt trên máy chạy script này.

./linux-util.sh
FAMILUG's list of essential Linux utilites 1.0
TOTAL: 80
man (1)              - an interface to the on-line reference manuals
man (7)              - macros to format man pages
ls (1)               - list directory contents
cd: nothing appropriate.
pwd (1)              - print name of current/working directory
grep (1)             - print lines matching a pattern
head (1)             - output the first part of files
tail (1)             - output the last part of files
cut (1)              - remove sections from each line of files

Monday, 20 October 2014

[Python] đếm trong list

Tuy code Python đã lâu, nhưng giờ mình mới để ý list chỉ có 9 public method, một con số không phải là lớn, và nếu bạn không nhớ hết, đôi khi bạn sẽ thấy bất ngờ.

Đề bài: đếm số phần tử True trong list bools dưới đây:
In [2]: import random

In [13]: nums = [random.randint(0,10) for i in range(10)]

In [15]: bools = [True if i % 2 == 0 else False for i in nums]

Sau khi nghĩ xong cách bạn sẽ làm, hãy bấm để xem tiếp

Thursday, 6 February 2014

Các địa chỉ mua bán tin cậy tại HN

(giới thiệu bởi thành viên FAMILUG)

Sửa chữa laptop ở đâu?

suachualaptop24h http://www.suachualaptop24h.com/

Mua tai nghe ở đâu?

songlong http://songlongmedia.com/
tainghe.com.vn http://tainghe.com.vn/index.php

...

ai có gì thì comment vào nhé