From 64ffde09b5ce84c731439944d31b45ef7ef95818 Mon Sep 17 00:00:00 2001 From: masiluo <root@ubuntu.(none)> Date: Sun, 6 Jan 2019 17:57:02 +0800 Subject: [PATCH] 2018.1_homework_liuwen --- zuoye.txt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 zuoye.txt diff --git a/zuoye.txt b/zuoye.txt new file mode 100644 index 0000000..b7d4b4f --- /dev/null +++ b/zuoye.txt @@ -0,0 +1,9 @@ +def panduan(J,S): + listone = [] + for i in S: + if i in J: + listone.append(i) + print(listone) + print(len(listone)) + +panduan('asdf','asdfgASDFGasdf') -- libgit2 0.26.0