`
猫太的鱼
  • 浏览: 233075 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
python类型转换 函数 描述 int(x [,base ]) 将x转换为一个整数 long(x [,base ]) 将x转换为一个长整数 float(x ) 将x转换到一个浮点数 complex(real [,imag ]) 创建一个复数 str(x ) 将对象 x 转换为字符串 repr(x ) 将对象 x 转换为表达式字符串 eval(str ) 用来计算在字符串中的有效Python ...
首先,先是从IBM网站上扒下来的资料。 What is java.lang.NoSuchMethodError ? This is an Error. It means that when the code was compiled, the method existed in the class. But when the code was run, the method didn't exist. Why java.lang.NoSuchMethodError happens ? This happens when the referenced class used t ...
在dataserver上看到的失败日志通常都是,心跳验证失败,例如下面的 [2013-05-13 19:06:17] ERROR handlePacket (heartbeat_thread.cpp:138) [1143060800] ControlPacket, cmd:3 [2013-05-13 19:06:18] ERROR handlePacket (heartbeat_thread.cpp:138) [1143060800] ControlPacket, cmd:2 [2013-05-13 19:06:18] ERROR handlePacket (heartbeat_threa ...
在VMware下格式化一个分区出错: # mkfs.ext3 /dev/sda2 mke2fs 1.40.8 (13-Mar-2008) mkfs.ext3: inode_size (128) * inodes_count (0) too big for a filesystem with 0 blocks, specify higher inode_ratio (-i) or lower inode count (-N). 该如何解决啊????? ____________________________ ...
#include <stdio.h> #include <stdlib.h> int **measures = NULL; char **dna = NULL; int partitions(int **arr, int low, int high) { int *prvotkey = arr[low]; arr[0] = arr[low]; while (low < high) { while (low < high &&am ...
#include <stdio.h> #include <math.h> int main() { int count; double x,y; int i; scanf("%d",&count); for(i=0;i!=count;i++) { scanf("%lf %lf",&x,&y); printf(" ...
#include <stdio.h> int main(void) { float input, overhang = 0.0; int count = 2; while (1) { scanf("%4f",&input); if (input == 0.00) break; if (input > 5.20 || inpu ...
#include <stdio.h> #include <stdlib.h> char s[31]; int hash() { int sum = 0, i, k; for (i = 0, k = 0;k < 7;i++) { if (s[i] >='0' && s[i] <='9') { sum *= 10; k++; ...
#include <stdio.h> #include <stdlib.h> #include <string.h> /* It is not used. * char dict[8][3] = { {'A', 'B', 'C'}, {'D', 'E', 'F'}, {'G', 'H', 'I'}, {'J', 'K', 'L'}, {'M', 'N', 'O'}, {'P', 'R', 'S'}, {'T', ...
第一个姑娘该是个爱你的人,出现在你没法区分爱和饥渴的时候。那时候你还在青春期的尾巴上,满脑子的性冲动混合着韩剧爱情幻想。你自尊脆弱而又怯懦无助,随便抓住哪一根稻草都当是救命的灵药。     她也许相貌平平,但你没什么更好的选择。她也许平庸乏味,但你也没什么更好的选择。这听上去很残忍,但是相信我,那时候的你根本意识不到这一点。你误把饥渴当成了爱情。你努力的和她演戏,接吻,爱抚,看电影,吃路边摊的小吃。这一切都贴上了荷尔蒙的标签,其实你什么都不想做,除了互相挑逗和爱抚带来的快感以外,你感觉不到任何幸福感。你觉得自己跟她始终隔着一层纸,你们都对此心知肚明,所以就更加惶恐的努力演戏,以为总有一天会演成 ...
--- 进行了将近一天的惊心动魄的升级后(很庆幸系统没有挂掉,而且感觉更快了),终于想静下心来把一个星期以来的安装、配置以及升级gentoo大致写出来,一是想纪念一下,另外也许对其他想用gentoo的朋友有一些参考价值。 我使用linux不算很长,大概用了一年半的ubuntu和一年的archlinux。用archlinux时逛论坛经常有人谈及gentoo,好像用 gentoo的都是高手。当时感觉可笑,各各发行版区别都那么大吗,之前用ubuntu转到archlinux也就是显卡驱动那碰到点问题,其他都比较顺 利,gentoo又能难到哪去呢?另外gentoo安装软件都是要编译的,我的本性能也不好,就 ...
在安装windows时留下了30多G的空间用于安装gentoo,可是gentoo安装好后,发现进不了windows了,使用fdisk -l /dev/sda显示: Disk /dev/sda: 250.1 GB, 250059350016 bytes 240 heads, 63 sectors/track, 32301 cylinders, total 488397168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (mi ...
locale 是国际化与本土化过程中的一个非常重要的概念,个人认为,对于中文用户 来说,通常会涉及到的国际化或者本土化,大致包含三个方面:看中文,写中文,与 window中文系统的兼容和通信。从实际经验上看来,locale的设 定 ...
Locale是根据计算机用户所使用的语言,所在国家或者地区,以及当地的文化传统所定义的一个软件运行时的语言环境。 locale把按照所涉及到的文化传统的各个方面分成12个大类,这12个大类分别是: 1、语言符号及其分类(LC_CTYPE) 2 ...
ArchLinux是一个十分优秀的Linux发行版本,笔者曾经是Ubuntu Linux用户,最终放弃转型成ArchLinux,最近使用中发现ArchLinux的系统时间总是显示的不正确。但在安装的时候已经将rc.conf中的TIMEZONE设置为”Asia/Shanghai”了,为什么显示的仍然不正确的?于是疯狂google,最终总结如下方法: 方法1: 修改/etc/rc.conf 中的 TIMEZONE=”Asia/Shanghai” $ sudo nano /etc/rc.conf 在/etc/localtime做个链接: $ sudo ln -sf /usr/share/zonei ...
Global site tag (gtag.js) - Google Analytics